Skip to end of banner
Go to start of banner

findFiles

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Description

Searches for files that match the given regex in the specified folder. The routine only searches for files, not directories. Returns a list with absolute paths for files 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

findFiles("C:/JIRA/plugins", ".*\\.jar");

Results: An array containing all absolute paths for jar files from the folder C:\JIRA\plugins.

  1. It is recommended that you use forward slashes ( / ) for file paths.
  2. If the regex contains a backslash replace it with two backslashes otherwise you will get a syntax error.

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels