Skip to content

Fixed Glob Bug With Pattern That Has Nonexistent Path And WithFailOnIOErrors

Compare
Choose a tag to compare
@bmatcuk bmatcuk released this 05 Nov 14:08
· 17 commits to master since this release
v4.3.1
315bbcf

If the WithFailOnIOErrors option was set and the pattern contained a reference to a nonexistent path (such as nonexistent/path/*), Glob would return ErrNotExist. It now returns an empty result with no error as expected.

For anyone that would prefer that doublestar returned an error, I'll be adding that as a feature (and a separate option) later.