函数want和need都要求它们的输入是 typeFilePath而不是FilePattern. 我的输出和输入的文件名遵循不同的模式,输出_build/*checker.sh和输入是./*.py. 因此我宁愿做一个want形式:
want ['_build/*checkers.sh']
比
want ['_build/dbchecker.sh', '_build/henk_checker.sh', ..., '_build/derp_checker.sh']
want我尝试通过组合来构建更复杂的东西,getDirectoryFiles, action, need但这不起作用,因为getDirectoryFiles返回Action [FilePath]而不是FilePath.
这个问题的正确解决方案是什么?