Find Files in Directory

Retrieves a list of files on the file system matching a wildcard pattern.

 

Input Arguments

 

0

String

Directory

The directory in which to search.

1

String

File Name Pattern

The Windows-standard wildcard pattern to search.

2

Boolean

Recursive?

Indicates whether subdirectories of the supplied directory should be recursively searched.

 

Return Arguments

 

3

String Ref List

Files

The list of file paths matching the provided search details.

 

Returned Status

 

SUCCESS

The list was retrieved successfully.

FAILURE

The provided directory was not found.

 

Remarks

This command supports absolute paths (ex. C:\test.xit), or relative paths (ex. .\test.xit) from the work- ing directory which may be SA install directory unless specified using Set Working Directory. To make this command behave like others that accept relative paths, first use “Set Working Directory” with .\ as the working directory path in argument 0.