Skip to content

Further abstraction for OS interface

Compare
Choose a tag to compare
@bmatcuk bmatcuk released this 15 Aug 14:20
· 65 commits to master since this release

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!