directory_files/2¶
"directory_files(+ Dir,- List" )
Given a directory Dir, directory_files_50 "directory_files/2" procedures a listing of all fniles and directories in the directory:
?- directory_files( '.' ,L), writeq(L).
[ 'Makefile.~1~' , 'sys.so' , 'Makefile' , 'sys.o' ,x,.., '.' ]
The predicates uses the dirent
family of routines in Unix environments, and findfirst
in WIN32 through the system_library buil