os.readDir()
Description
List filenames in a directory.
In the returned array, directory names have a trailing slash '/' to distinguish from regular files.
Syntax
os.readDir(pathname)
Parameters
readDir(filename)
filename
Pathname of the directory to read.
Return Value
An array of filenames contained in that directory.