Module directoryListing
Functions to list the content of a directory in VFS.
Opossed to the VFS.DirList and VFS.SubDirs functions, these ones return the actual names/relative paths.
Functions
dirList (path, mask, mode) | Returns the files from the specified directory. |
subDirs (path, mask, mode) | Returns the subdirectories from the specified directory. |
Functions
- dirList (path, mask, mode)
-
Returns the files from the specified directory.
Parameters:
- path string The directory to list.
- mask string The mask of the files to be returned.
- mode Mode as expected by VFS.DirList.
Returns:
-
[string]
The names of the files within the directory
- subDirs (path, mask, mode)
-
Returns the subdirectories from the specified directory.
Parameters:
- path string The directory to list.
- mask string The mask of the subdirectories to be returned.
- mode Mode as expected by VFS.SubDirs.
Returns:
-
[string]
The names of the subdirectories within the directory