Availability:built-in
directory_files(+Directory,
-Entries)Unify Entries with a list of entries in Directory.
Each member of Entries is an atom denoting an entry relative
to Directory. Entries contains all entries,
including hidden files and, if supplied by the OS, the special entries .
and
..
. See also expand_file_name/2.160This
predicate should be considered a misnomer because it returns entries
rather than files. We stick to this name for compatibility with, e.g.,
SICStus, Ciao and YAP.