It would be great if you could include/exclude files from the batch by evaluating not only the filename but also the path of a file.
• A simple "does (not) contain" operator helps already most cases, e.g. does not contain "/source/"
• And with a RegEx I could easily make very specific criteria like "the directory 3 levels above the file must be named medium or high" with a RegEx like: (medium|high)/[^/]+/[^/]+/$
Implementation as Batch Condition Block
The other elements in the "Conditional" section of the batch blocks have no options themselves.
So if we stick true to that "atomar building" philosophy we would need to create:
Or we could reduce that thing to a single block with options.Do export if path contains
Do export if path does not contain
Do export if path matches RegEx
Do export if path doesn't match RegEx
Do not export if path contains
Do not export if path does not contain
Do not export if path matches RegEx
Do not export if path doesn't match RegEx
Also the differentiation "contains" and "RegEx" may not be necessary.
• As this is an expert matter RegEx would suffice. And a simple literal is a valid RegEx anyhow.
• Only thing: As the slash "/" character is the Unix path separator, you can very conveniently match along folder boundaries.
• If possible the RegEx should work without the need to escape the slash "/" character which from RegEx syntax itself is totally possible, but in some command line apps (e.g. awk) the slash itself is often reserved or at least the default to signal the start and end of a RegEx. Hence needs escaping. Needing to escape slashes for matching paths would be very badly readable and inconvenient for the task at hand.
• If you could not get around the need to escape slashes in your RegEx operator, then I'd really appreciate an additional simple "Does (not) contain" literal operator, as that does the job for many needs.