Skip to content

Releases: bmatcuk/doublestar

Fixed bug clobbering results if Readdir fails

15 Aug 14:26
Compare
Choose a tag to compare

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

15 Aug 14:22
Compare
Choose a tag to compare

If Readdir failed, doublestar was returning nil instead of the accumulated results. Thanks for the bug report @InfiniteTF!

Further abstraction for OS interface

15 Aug 14:20
Compare
Choose a tag to compare

doublestar only needs Readdir and the Closer interface for the type returned by OS.Open(). By changing the return type to this basic interface, it's even easier to abstract the calls to the filesystem for testing. This is an API change, though, necessitating a major version bump. Updating should be fairly easy. See: https://github.com/bmatcuk/doublestar/blob/master/UPGRADING.md

Thanks for the suggestion @c4milo!

Fixed bug matching files that started with a multi-byte unicode char

15 Aug 14:15
Compare
Choose a tag to compare

Added "OS" interface to improve testability

25 Apr 12:41
Compare
Choose a tag to compare

Thanks to @twpayne, doublestar now has exported versions of PathMatch and Glob (PathMatchOS and GlobOS respectively) that take an OS interface which can be used to abstract the underlying filesystem calls. Using something like go-vfs, you can then write unit tests for code that uses doublestar without depending on an actual filesystem.

Existing PathMatch and Glob are unchanged.

Sort results from Glob()

14 Apr 00:18
Compare
Choose a tag to compare
v1.2.4

v1.2.4

Minor Bug Fix

12 Apr 13:24
Compare
Choose a tag to compare

Improves compatibility with path.Match by supporting something like Match("*/", "a/")

Windows Absolute Paths Without Volumes; Windows Tests Fixes

17 Dec 19:27
50be492
Compare
Choose a tag to compare

Fixes Patterns that Start With Alternatives

02 Dec 20:58
Compare
Choose a tag to compare

Support for path separators inside {alts}

01 Dec 21:37
Compare
Choose a tag to compare

This release adds support for {alt} groups that include path separators, for example: {/tmp/test/example1,/tmp/test/example2}. It also adds support for nested alt groups. This should close bug #25.