We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95f4004 commit fc01ed8Copy full SHA for fc01ed8
modules/util/remove.go
@@ -64,7 +64,7 @@ func Rename(oldpath, newpath string) error {
64
if err == nil {
65
break
66
}
67
- unwrapped := err.(*os.PathError).Err
+ unwrapped := err.(*os.LinkError).Err
68
if unwrapped == syscall.EBUSY || unwrapped == syscall.ENOTEMPTY || unwrapped == syscall.EPERM || unwrapped == syscall.EMFILE || unwrapped == syscall.ENFILE {
69
// try again
70
<-time.After(100 * time.Millisecond)
0 commit comments