Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: IsNotExist doesn't recognize SyscallError #12674
os.RemoveAll may return a SyscallError(NOENT) when the directory it's working on gets deleted. RemoveAll calls Readdirnames which calls readdirnames which could return SyscallError. Since SyscallError could contain a NOENT error, it should be handled by os.IsNotExist.
Happened on a linux machine.