Releases: bmatcuk/doublestar
Fixed Windows Bugs
Fixed some Windows bugs in v4.0.0.
Complete Rewrite for Performance and io/fs Support
v4 is a complete rewrite with a focus on performance. Additionally, doublestar has been updated to use the new io/fs package for filesystem access. As a result, it is only supported by golang v1.16+. See README.md and UPGRADING.md for additional information.
Negate Character Classes with Exclamation Marks or Carets
To match POSIX patterns, v3 of doublestar supports negating character classes with exclamation marks (ie, [!...]
) in addition to carets ([^...]
). This is a minor breaking change if any of your existing patterns happen to include an exclamation mark as the first character in a character class. To fix the issue, simply escape the exclamation mark (ie, [\!...]
) or move it later in the character class (ie, `[...!...]').
Fixed Minor Recursion Bug
Fixed Minor Recursion Bug
Reduced Allocations
This release reduces some of the allocations in Match and PathMatch, improving performance. I've also added benchmarks in the tests.
Close Directories Immediately
A small change to close directories immediately, rather than deferring. Thanks @luhring!
Close Directories Immediately
A small change to close directories immediately, rather than deferring. Thanks @luhring!
Fixed bug clobbering results if Readdir fails
If Readdir
failed, doublestar was returning nil
instead of the accumulated results. Thanks for the bug report @InfiniteTF!
Fixed bug clobbering results if Readdir fails
If Readdir
failed, doublestar was returning nil
instead of the accumulated results. Thanks for the bug report @InfiniteTF!