Open BurtHarris opened 7 years ago
That error indicates that the path does not exist. Throwing an error makes sense in that case.
The ignoreErrors
option might be what you're looking for. This will test whether or not a file is executable, but return false
if any error is encountered. This is useful for files that might not exist. There is an example of this in the README.
Using
fs.stat
orfs.statSync
on windows ends up throwing lots of exceptions.For example (one of hundreds generated by running a
gulp
command.