FILES-CONDITION for checking contents of directories
Adds
- Type
FILES-CONDITION
- File matcher
dir-contents
:matches [-full] FILES-CONDITION
For example
dir-contents some-dir matches -full
{
a.txt
b.txt : type file
sub1 : type dir && dir-contents matches -full
{
c.txt : type file && @[SOME_MATCHER]@
}
sub2 : type dir && matches @[SOME_FILES_CONDITION]@
sub3 : @[SOME_FILE_MATCHER]@
}
where
def file-matcher SOME_MATCHER = ...
def files-condition SOME_FILES_CONDITION = ...
def files-matcher SOME_FILE_MATCHER = ...