gotestyourself / gotestsum

'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results.
Apache License 2.0
2.03k stars 119 forks source link

filewatcher: silence warning from os.Stat failures #371

Closed smoynes closed 11 months ago

smoynes commented 11 months ago

Although unlikely, it is possible for os.Stat to fail in handleDirCreated. The two most likely causes are a symlink to a target that doesn't exist or a race condition with a process that deletes the path.

In any case, it isn't actionable by the user and causes no harm to ignore the error.

Refs: #370