We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62fa153 commit 9cc54daCopy full SHA for 9cc54da
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