diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-26 17:03:42 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-27 12:16:51 +0200 |
commit | 0779b1c31d27c348f6f2a94c5aa1a64de855a39d (patch) | |
tree | f4d3a1ef72a03c3afa56e3f076a3a4216c7538d6 /doc/lispref/files.texi | |
parent | 2cc5bb67ffde05384dfb4b7c24ea3e4255205390 (diff) | |
download | emacs-0779b1c31d27c348f6f2a94c5aa1a64de855a39d.tar.gz |
Allow directory-files-recursively to follow symlinks
* doc/lispref/files.texi (Contents of Directories): Document it.
* lisp/files.el (directory-files-recursively): Allow following
symlinks.
Diffstat (limited to 'doc/lispref/files.texi')
-rw-r--r-- | doc/lispref/files.texi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 0ea8a4f0a19..6be5a528372 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -2919,7 +2919,7 @@ An error is signaled if @var{directory} is not the name of a directory that can be read. @end defun -@defun directory-files-recursively directory regexp &optional include-directories predicate +@defun directory-files-recursively directory regexp &optional include-directories predicate follow-symlinks Return all files under @var{directory} whose names match @var{regexp}. This function searches the specified @var{directory} and its sub-directories, recursively, for files whose basenames (i.e., without @@ -2940,6 +2940,9 @@ instance, if it's not readable by this user) are ignored. If it's neither @code{nil} nor @code{t}, it should be a function that takes one parameter (the subdirectory name) and should return non-@code{nil} if the directory is to be descended into. + +Symbolic links to subdirectories are not followed by default, but if +@var{follow-symlinks} is non-@code{nil}, they are followed. @end defun @defun directory-files-and-attributes directory &optional full-name match-regexp nosort id-format |