Commit e1f0e089 authored by Eli Zaretskii's avatar Eli Zaretskii

* lisp/files.el (directory-files-recursively): Doc fix. (Bug#40202)

parent 02b38203
Pipeline #5088 passed with stage
in 55 minutes and 53 seconds
......@@ -819,23 +819,25 @@ The path separator is colon in GNU and GNU-like systems."
(defun directory-files-recursively (dir regexp
&optional include-directories predicate
follow-symlinks)
"Return list of all files under DIR that have file names matching REGEXP.
"Return list of all files under directory DIR whose names match REGEXP.
This function works recursively. Files are returned in \"depth
first\" order, and files from each directory are sorted in
alphabetical order. Each file name appears in the returned list
in its absolute form.
Optional argument INCLUDE-DIRECTORIES non-nil means also include
in the output directories whose names match REGEXP.
By default, the returned list excludes directories, but if
optional argument INCLUDE-DIRECTORIES is non-nil, they are
included.
PREDICATE can be either nil (which means that all subdirectories
are descended into), t (which means that subdirectories that
of DIR are descended into), t (which means that subdirectories that
can't be read are ignored), or a function (which is called with
the name of the subdirectory and should return non-nil if the
the name of each subdirectory, and should return non-nil if the
subdirectory is to be descended into).
If FOLLOW-SYMLINKS, symbolic links that point to directories are
followed. Note that this can lead to infinite recursion."
If FOLLOW-SYMLINKS is non-nil, symbolic links that point to
directories are followed. Note that this can lead to infinite
recursion."
(let* ((result nil)
(files nil)
(dir (directory-file-name dir))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment