Function: woman-directory-files

woman-directory-files is a byte-compiled function defined in woman.el.gz.

Signature

(woman-directory-files HEAD DIR)

Documentation

Return a sorted list of files in directory HEAD matching regexp in DIR.

Value is a sorted list of the absolute pathnames of all the files in directory HEAD, or the current directory if HEAD is nil, that match the regexp that is the final component of DIR. Log a warning if list is empty.

Source Code

;; Defined in /usr/src/emacs/lisp/woman.el.gz
(defun woman-directory-files (head dir)
  "Return a sorted list of files in directory HEAD matching regexp in DIR.
Value is a sorted list of the absolute pathnames of all the files in
directory HEAD, or the current directory if HEAD is nil, that match the
regexp that is the final component of DIR.  Log a warning if list is empty."
  (or (directory-files
       (or head (directory-file-name default-directory)) ; was "."
       t
       (file-name-nondirectory dir))
      (WoMan-warn "No directories match `woman-path' entry `%s'!" dir)))