comparison lispref/files.texi @ 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 420dc7ac8867
children 780b9eb8b58e
comparison
equal deleted inserted replaced
53424:1190ac85436f 53425:bd30a9882e31
2161 @end group 2161 @end group
2162 @end example 2162 @end example
2163 2163
2164 An error is signaled if @var{directory} is not the name of a directory 2164 An error is signaled if @var{directory} is not the name of a directory
2165 that can be read. 2165 that can be read.
2166 @end defun
2167
2168 @defun directory-files-and-attributes directory &optional full-name match-regexp nosort
2169 This is similar to @code{directory-files} in deciding which files
2170 to report on and how to report their names. However, instead
2171 of returning a list of file names, it returns for each file a
2172 list @code{(@var{filename} . @var{attributes})}, where @var{attributes}
2173 is what @code{file-attributes} would return for that file.
2166 @end defun 2174 @end defun
2167 2175
2168 @defun file-name-all-versions file dirname 2176 @defun file-name-all-versions file dirname
2169 This function returns a list of all versions of the file named 2177 This function returns a list of all versions of the file named
2170 @var{file} in directory @var{dirname}. 2178 @var{file} in directory @var{dirname}.