Mercurial > emacs
changeset 53425:bd30a9882e31
(Contents of Directories):
Add directory-files-and-attributes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 29 Dec 2003 20:28:40 +0000 |
parents | 1190ac85436f |
children | adae6745b4c9 |
files | lispref/files.texi |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/files.texi Mon Dec 29 20:28:06 2003 +0000 +++ b/lispref/files.texi Mon Dec 29 20:28:40 2003 +0000 @@ -2165,6 +2165,14 @@ that can be read. @end defun +@defun directory-files-and-attributes directory &optional full-name match-regexp nosort +This is similar to @code{directory-files} in deciding which files +to report on and how to report their names. However, instead +of returning a list of file names, it returns for each file a +list @code{(@var{filename} . @var{attributes})}, where @var{attributes} +is what @code{file-attributes} would return for that file. +@end defun + @defun file-name-all-versions file dirname This function returns a list of all versions of the file named @var{file} in directory @var{dirname}.