system.directory.list

Syntax

l := system.directory.list(<sdir><,brecurse><,bdir>)

Return a list of all file entries in a directory.

sdir is the name of the directory, if not provided then the current directory is used.

brecurse indicates if the list should recurse into sub-directories. The default value is false.

bdir indicates if the name of files or directores given in the list. The is false, indicating file names should be returned and directory names should be skipped.

Returns:l - a list of names in the given directory.
Arguments:sdir - The directory to scan, or the current directory by default. brecurse - If true, the scan should recurse into sub-directories. The default value is false. bdir - If true, the list should return sub-directory names rather than file names. The default value is false.