Ignore both .cache and .archive and other hidden files in finding output files

This commit is contained in:
James Allen
2016-03-30 11:41:11 +01:00
parent d949d4ac32
commit 6117cac1fd

View File

@@ -29,7 +29,7 @@ module.exports = OutputFileFinder =
_callback(error, fileList) _callback(error, fileList)
_callback = () -> _callback = () ->
args = [directory, "-name", ".cache", "-prune", "-o", "-type", "f", "-print"] args = [directory, "-name", ".*", "-prune", "-o", "-type", "f", "-print"]
logger.log args: args, "running find command" logger.log args: args, "running find command"
proc = spawn("find", args) proc = spawn("find", args)