directory
directory — returns the contents of a directory.
directory (path, filetypes, fullpaths)
pathA path to a directory as defined by the operating system.
filetypesA number in the range 0 to 2:
0 Find all files and directories.
1 Find all files.
2 Find all directories.
fullpathsIf non-nil,
show the full pathname of the file by prepending the
path to all filenames.
A list containing all of the requested directory entries as strings.
Gamma>directory("/usr",0,nil);("local" "lib" "bin" "readme")Gamma>sort(directory("/usr",2,t),strcmp);("/usr/bin" "/usr/lib" "/usr/local")