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 66fa6a3e2e
commit 9c7e8af851

View file

@ -29,7 +29,7 @@ module.exports = OutputFileFinder =
_callback(error, fileList)
_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"
proc = spawn("find", args)