fast-glob icon indicating copy to clipboard operation
fast-glob copied to clipboard

suppress ENOTDIR errors similar to ENOENT

Open wernst opened this issue 1 month ago • 1 comments

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

wernst avatar Nov 10 '25 22:11 wernst

Alternatively https://github.com/mrmlnc/fast-glob/pull/485 would also address this

wernst avatar Nov 10 '25 22:11 wernst