c37cd819a93940ad24e7909204b6cf355872112e
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
Languages
Go
100%