Function: denote-directories--get-paths

denote-directories--get-paths is a byte-compiled function defined in denote.el.

Signature

(denote-directories--get-paths DIRECTORY-OR-DIRECTORIES)

Documentation

Return DIRECTORY-OR-DIRECTORIES as a list of absolute paths.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-directories--get-paths (directory-or-directories)
  "Return DIRECTORY-OR-DIRECTORIES as a list of absolute paths."
  (unless (or (seq-every-p #'stringp directory-or-directories)
              (stringp directory-or-directories))
    (error "The `%S' has to be a string or a list of strings" directory-or-directories))
  (let ((get-dir (lambda (directory) (file-name-as-directory (expand-file-name directory)))))
    (if (listp directory-or-directories)
        (mapcar get-dir directory-or-directories)
      (list (funcall get-dir directory-or-directories)))))