Takes 3 parameters, Folder, Filter, bShowImgSize, bShowAccessed
Usage:
FolderPath, Filter, bShowImgSize, bShowAccessed
FolderPath, Filter, [""], [""]
FolderPath, [""], [""], [""]
Description:
This command resets the Work Query and loads a list of Files from the specified FolderPath into the Work Query.
The fields included in the Work Query by default are Name, Created, Modified, Size.
If the bShowImgSize parameter is true, an additional field named ImageSize will be the last field after Size.
If the bShowAccessed parameter is true, an additional field named Accessed will be added after Modified.
The optional Filter parameter allows file extension filtering using combinations of * and ?, such as *.csv
or *.c?v
.
Example:
ListFiles "Public/AnyFolder" 'Default simple list of all files in folder
ListFiles "Private/SomeFolder", "*.csv" 'List only CSV files
ListFiles "Public/Images", "*.jp*", "y" 'List image files matching both .jpg and .jpeg and list image size
ListFiles "Private/Debug", "*.log", "", "y" 'List files including Last Accessed Date Time