diff options
| author | Lars Ingebrigtsen | 2019-07-26 17:03:42 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-27 12:16:51 +0200 |
| commit | 0779b1c31d27c348f6f2a94c5aa1a64de855a39d (patch) | |
| tree | f4d3a1ef72a03c3afa56e3f076a3a4216c7538d6 /doc | |
| parent | 2cc5bb67ffde05384dfb4b7c24ea3e4255205390 (diff) | |
| download | emacs-0779b1c31d27c348f6f2a94c5aa1a64de855a39d.tar.gz emacs-0779b1c31d27c348f6f2a94c5aa1a64de855a39d.zip | |
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')
| -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 | |||
| 2919 | that can be read. | 2919 | that can be read. |
| 2920 | @end defun | 2920 | @end defun |
| 2921 | 2921 | ||
| 2922 | @defun directory-files-recursively directory regexp &optional include-directories predicate | 2922 | @defun directory-files-recursively directory regexp &optional include-directories predicate follow-symlinks |
| 2923 | Return all files under @var{directory} whose names match @var{regexp}. | 2923 | Return all files under @var{directory} whose names match @var{regexp}. |
| 2924 | This function searches the specified @var{directory} and its | 2924 | This function searches the specified @var{directory} and its |
| 2925 | sub-directories, recursively, for files whose basenames (i.e., without | 2925 | 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 | |||
| 2940 | neither @code{nil} nor @code{t}, it should be a function that takes | 2940 | neither @code{nil} nor @code{t}, it should be a function that takes |
| 2941 | one parameter (the subdirectory name) and should return non-@code{nil} | 2941 | one parameter (the subdirectory name) and should return non-@code{nil} |
| 2942 | if the directory is to be descended into. | 2942 | if the directory is to be descended into. |
| 2943 | |||
| 2944 | Symbolic links to subdirectories are not followed by default, but if | ||
| 2945 | @var{follow-symlinks} is non-@code{nil}, they are followed. | ||
| 2943 | @end defun | 2946 | @end defun |
| 2944 | 2947 | ||
| 2945 | @defun directory-files-and-attributes directory &optional full-name match-regexp nosort id-format | 2948 | @defun directory-files-and-attributes directory &optional full-name match-regexp nosort id-format |