Highlights
Bug fix: memfs directory enumeration and RemoveAll mishandled prefix-named siblings. A sibling such as dir0-tmp shares the string prefix dir0 and can sort between a directory key and its children (- (0x2d) sorts before / (0x2f)). The previous code matched on the bare string prefix, so enumeration could stop short and RemoveAll("dir0") could delete the unrelated dir0-tmp. This is the primary reason to upgrade.
Changes
Fixed
- memfs: match the full path segment (
dir0/) instead of the bare string prefix inReadDir, glob, andRemoveAll(#17)
Internal
- Modernize
interface{}→anyandb.N→b.Loop()(#18) - Harden memfs tests: avoid
reflect.DeepEqualon errors, use range-over-int in theSubconcurrency smoke test (#19, #20)
Upgrading
- wfs is a single module: run
go get github.com/mojatter/wfs@v0.5.1. - No public API changes and no behavior changes outside the memfs fix above — no migration needed.