listfiles
.listfiles path:{String}
directories:{Boolean = true}
fullpath:{Boolean = true}
sortby:{FileSorting = FileSorting.NONE}
order:{Ordering = Ordering.ASCENDING}
-> Iterable<String>Content copied to clipboard
Lists the files located in a directory.
Return
an unordered collection of string values, each representing a file located in the directory, with extension
Parameters
path
path of the directory to list files from
directories
- Optional
- Likely named
whether to include directories in the listing
fullpath
- Optional
- Likely named
whether to return the absolute path of each file, rather than just the file name
sortby
order
See also
to exclude the extension from file names
Throws
if the directory does not exist or if the path is not a directory