Back to FabImage Studio website

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

EnumerateFiles_Random


Module: FoundationLite

Enumerates the files present in a disk directory sorted randomly.

Name Type Description
Input value inDirectory Directory Input directory
Input value inExtensions String Allowed extensions separated by semicolon
Input value inSeed int? Random seed used to determine random sorting order
Input value inRepeat Bool Determines whether to repeat reading directory after reading all files
Input value inProcessSubdirectories Bool Flag indicating whether to enumerate files from the subdirectories or not
Input value inInvert Bool Flag indicating whether to enumerate files backwards or not
Output value outFilePath File Output file path
Output value outFileName String Output file name
Output value outIsFirst Bool Flag indicating the first iteration
Output value outIsLast Bool Flag indicating the last iteration

Errors

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

List of possible exceptions:

Error type Description
DomainError Cannot sort by file creation date on Linux.
DomainError Directory doesn't exist: Directory path
DomainError Empty string is not a valid directory path.

Complexity Level

This filter is available on Basic Complexity Level.