Lucid.Util.SearchFolderFilesBySuffix¶
This task type allows recursively searching a folder for matching files.
Matching modes¶
If multiple suffixes are given, files with each suffix are searched. Different matching modes are available to spawn a new XF job run for each matching group of files.
Mode: standalone¶
The files are not matched. A new XF job run is spawned for each file.
Mode: filename¶
The files are matched based on the filename only.
Example
suffixes:.omni|_seg.omniimages/example1.omniimages/example2.omnilabels/example1_seg.omnilabels/example2_seg.omni
(If the suffixes are identical, use suffix_regex mode instead.)
Mode: dirname¶
The files are matched based on the directory they are in.
Example
suffixes:image.omni|label.omniexample1/image.omniexample1/label.omniexample2/image.omniexample2/label.omni
Mode: suffix_regex¶
Use a regular expression with (...) capture groups for the first suffix, and \1 group substitutions in the other suffixes.
Example
suffixes:images/(.*)\.omni$|labels/\1.omniimages/example1.omniimages/example2.omnilabels/example1.omnilabels/example2.omni
Example
suffixes:image(\d+).omni$|label\1.omnifolder/image1.omnifolder/label1.omnifolder/image2.omnifolder/label2.omni
Supported Image Formats¶
If the typename input is set to Image, the following formats are supported:
OMNI
ISQ
AIM
Set the typename input to ForeignFile to handle any other file type.
Append additional tasks to import such files from other formats.