Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » File System » FindFiles

FindFiles


Returns files of the input directory.

Name Type Description
inStartDirectory Directory Input directory
inMask String Regular expression
inSubdirs Bool Read subdirectories
outFilePaths FileArray File paths
outFileNames StringArray File names

Examples

Description of usage of this filter can be found in examples and tutorial: Calibration with Chessboard (Advanced), Plate Measurement (Advanced).

Remarks

Working with Find Files
Start with defining a directory path in inStartDirectory port to choose where you want to look for files. To search files in subdirectories set inSubdirs to 'true'. Port inMask filters search results, you can use any expression like examples below:
Examples:
  • * - finds all files,
  • *.jpg - finds files only with extension .jpg,
  • Adaptive.* - finds files with name "Adaptive"

Errors

This filter can throw an exception to report error. Read how to deal with errors here: Error Handling

Error type Description
DomainError Given start directory is invalid in FindFiles.
IoError Error opening start directory in FindFiles.

Complexity Level

This filter is available on Basic Complexity Level.

See Also