Skip to content

v0.5.1

Latest

Choose a tag to compare

@mojatter mojatter released this 18 Jun 15:49
1b323a5

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 in ReadDir, glob, and RemoveAll (#17)

Internal

  • Modernize interface{}any and b.Nb.Loop() (#18)
  • Harden memfs tests: avoid reflect.DeepEqual on errors, use range-over-int in the Sub concurrency 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.

Full Changelog

v0.5.0...v0.5.1