listfiles()
Get list of files of a specified path
listfiles(path, full_path = false)
path
(string) — Path to the directoryfull_path
(boolean, optional) — If full_path
is true
then the result will be prefixed with path
. The default value is false
array
— Returns the list of files
import fileio
files = listfiles("/path/to/dir")