vl-directory-files


(vl-directory-files [ folder [ fileMask [ mode ] ] ] )

This function returns a list of all files and/or directories for a specified folder.

Arguments

folder  (optional, string)  the base directory/folder where to collect files and/or folders from; if omitted or NIL, the current directory (of the Operating System) is used
fileMask  (optional, string)  a name pattern to filter for files/folders; if omitted or NIL, "*.*" (all) is used
mode  (optional, integer)  specifies what to collect :
-1 : folders only
0 : files and folders (default, if omitted)
1 : files only

Return

list of strings, or NIL if no matching files / folders are found;
only the file / folder names are returned, without path name (as relative file names)

Example

(vl-directory-files)
("." ".." "acis" "base" "drx" "dvb" "dwg" ...)

Remarks

the "actual folder" and the "parent folder" are always included as the first 2 entries, in their symbolic representation as "." and ".." !



©  Bricsys NV. All rights reserved.