fast-glob
fast-glob copied to clipboard
suppress ENOTDIR errors similar to ENOENT
What is the purpose of this pull request?
This PR includes ENOTDIR as a suppressed file system error in the same way that ENOENT is. I would make the case that they are spiritually similar when dealing with glob resolution ("a path to this file could not be found") and thus should be treated the same way. If you disagree that is fine, I will not be offended.
What changes did you make? (Give an overview)
Added checks for ENOTDIR when determining if an error is fatal
Alternatively https://github.com/mrmlnc/fast-glob/pull/485 would also address this