dualfroz c37cd819a9 fix: return an error instead of panicking on orphaned MemMapFs Remove
unRegisterWithParent called log.Panic when a file's parent directory was
no longer registered (for example when the parent was removed first),
crashing the whole program from an ordinary Remove call. Return a normal
error instead so Remove, RemoveAll and Rename can surface it to the
caller. The now-unused log import is dropped.

Fixes #388
2026-09-02 11:40:32 +02:00
S
Description
My contributions to spf13/afero: 3 commits
66 KiB
0 Stars 1 Watchers 0 Forks
Languages
Go 100%