Function: denote-sort-get-directory-files

denote-sort-get-directory-files is a byte-compiled function defined in denote.el.

Signature

(denote-sort-get-directory-files FILES-MATCHING-REGEXP SORT-BY-COMPONENT &optional REVERSE OMIT-CURRENT EXCLUDE-REGEXP)

Documentation

Return sorted list of files in variable denote-directory(var)/denote-directory(fun).

With FILES-MATCHING-REGEXP as a string limit files to those matching the given regular expression.

With SORT-BY-COMPONENT as a symbol among denote-sort-components, pass it to denote-sort-files to sort by the corresponding file name component.

With optional REVERSE as a non-nil value, reverse the sort order.

With optional OMIT-CURRENT, do not include the current file in the list.

With optional EXCLUDE-REGEXP exclude the files that match the given regular expression. This is done after FILES-MATCHING-REGEXP and OMIT-CURRENT have been applied.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-sort-get-directory-files (files-matching-regexp sort-by-component &optional reverse omit-current exclude-regexp)
  "Return sorted list of files in variable `denote-directory'.

With FILES-MATCHING-REGEXP as a string limit files to those
matching the given regular expression.

With SORT-BY-COMPONENT as a symbol among `denote-sort-components',
pass it to `denote-sort-files' to sort by the corresponding file
name component.

With optional REVERSE as a non-nil value, reverse the sort order.

With optional OMIT-CURRENT, do not include the current file in
the list.

With optional EXCLUDE-REGEXP exclude the files that match the given
regular expression.  This is done after FILES-MATCHING-REGEXP and
OMIT-CURRENT have been applied."
  (denote-sort-files
   (denote-directory-files files-matching-regexp omit-current nil exclude-regexp)
   sort-by-component
   reverse))