Skip to content

FILES-CONDITION for checking contents of directories

Compare
Choose a tag to compare
@emilkarlen emilkarlen released this 29 Jun 11:13
· 694 commits to master since this release

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    = ...