Onetastic Macro Documentation >
>
>
FileSystem_GetFolderEntries FileSystem_GetFolderEntries
Returns the list of files and folders inside a given folder that matches the optional pattern provided. If no pattern is provided, all files and folders are returned. The result does not contain special folder entries "." and "..".
Syntax
Array<File|Folder> FileSystem_GetFolderEntries(
Folder|String folder,
String pattern)
Parameters
- Folder|String folder
- Folder to search files in. This can either be a Folder object or a String that contains the full path to the folder.
- String pattern (optional)
- The pattern to look for in file and folder names.
Examples
$images = FileSystem_GetFolderEntries("c:\\temp", "*.png")
foreach ($image in $images)
|