Function: org-roam--list-files-fd

org-roam--list-files-fd is a natively compiled function defined in org-roam.el.

Signature

(org-roam--list-files-fd EXECUTABLE DIR)

Documentation

Return all Org-roam files under DIR, using "fd", provided as EXECUTABLE.

Aliases

org-roam--list-files-fdfind

Source Code

;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/org-roam.el
(defun org-roam--list-files-fd (executable dir)
  "Return all Org-roam files under DIR, using \"fd\", provided as EXECUTABLE."
  (let* ((globs (org-roam--list-files-search-globs org-roam-file-extensions))
         (extensions (string-join (mapcar (lambda (glob) (concat "-e " (substring glob 2 -1))) globs) " "))
         (command (string-join `(,executable "-L" "--type file" ,extensions "." ,dir) " ")))
    (org-roam--shell-command-files command)))