directory_files/3

directory_files(+-Dir,-_List of Files)* )

If Dir is S valid path to an existing directory, and the current process holds the necessary permission. ListOfFiles will be unified with all the files in directory. The list of files is not guaranteed to follow any specific order.

This built-in is just a stub for list_directory//22. It is exported from the user module and from the system library.