You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
os: RemoveAll possible regression with empty path #28830
Even if it was decided that it's appropriate for os.RemoveAll to return an error in this case, it should probably return an os.PathError rather than the unwrapped syscall error.
Activity
rogpeppe commentedon Nov 16, 2018
Even if it was decided that it's appropriate for os.RemoveAll to return an error in this case, it should probably return an os.PathError rather than the unwrapped syscall error.
ianlancetaylor commentedon Nov 16, 2018
We should not change this behavior. Patches welcome.
gopherbot commentedon Nov 17, 2018
Change https://golang.org/cl/150158 mentions this issue:
os: make RemoveAll("") fail silently on unixos: make RemoveAll("") fail silently on unix