Files
yetone d46af794b1 dirent: a folder renamed in whole under a watched one's name is read again
A listing was taken as current unless its own folder or its root's was
heard to change. A folder replaced whole (renamed away, another renamed
in under its name) is heard only in the folder that holds it, so a
Sessions read kept the old folder's listing until listedFor ran out.
Found while dropping WatchRoot (the commit before), which never covered
this: it reports the root alone. Every folder from the listing's parent
up to its root is now checked.

Run (mote, at this tree):
- go test -race -count=5 ./internal/dirent: ok
- go test ./internal/sessions: ok
- go vet ./internal/dirent for linux, windows; gofmt -l: clean
- red on the old code: the same rename as TestFolderReplacedWholeIsReadAgain,
  3 of 3 "new file not seen" at 0522bf84f.
Not tried: the full suite (CI runs it).
2026-11-16 08:23:32 +08:00
..