The functions want
and need
both require that their input is of type FilePath
rather than FilePattern
. The filenames of my outputs and inputs follow a distinct pattern, outputs are _build/*checker.sh
and the inputs are of ./*.py
. Therefore I would rather do a want
of the form:
want ['_build/*checkers.sh']
than
want ['_build/dbchecker.sh', '_build/henk_checker.sh', ..., '_build/derp_checker.sh']
I tried building a more complex want
by combining getDirectoryFiles, action, need
but that doesn't work since getDirectoryFiles
returns Action [FilePath]
rather than FilePath
.
What would be the proper solution to this problem?