findDirectories
Description
Searches for directories that match the given regex in the specified folder. The routine only searches for directories, not files. Returns a list with absolute paths for directories that match the given regex. The regex match is done on the file name, not the full path. If the regex parameter is empty string, the routine returns an empty result.
Parameters
Return Type
String []
Example
findDirectories("C:/JIRA/plugins", "kepler.*");
Results: An array containing all absolute paths for folders starting with 'kepler' from the folder C:\JIRA\plugins.
Â
It is recommended that you use forward slashes ( / ) for file paths.
If the regex contains a backslash replace it with two backslashes otherwise you will get a syntax error.
See also
Peacock