From: Richard M. Stallman Date: Mon, 29 Dec 2003 20:28:40 +0000 (+0000) Subject: (Contents of Directories): X-Git-Tag: ttn-vms-21-2-B4~8066 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=67203dbdf11bbeab54138e9dac5a0fcccea4b1e4;p=emacs.git (Contents of Directories): Add directory-files-and-attributes. --- diff --git a/lispref/files.texi b/lispref/files.texi index 83c33752323..575a90ccf92 100644 --- a/lispref/files.texi +++ b/lispref/files.texi @@ -2165,6 +2165,14 @@ An error is signaled if @var{directory} is not the name of a directory 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}.