mirror of https://github.com/minio/minio.git
posix: Add missing error return in RenameFile() (#9319)
Although it should not happen in most cases.
This commit is contained in:
parent
b2a8cb4aba
commit
c434dff0a4
|
@ -1608,6 +1608,7 @@ func (s *posix) RenameFile(srcVolume, srcPath, dstVolume, dstPath string) (err e
|
||||||
} else if isSysErrIO(err) {
|
} else if isSysErrIO(err) {
|
||||||
return errFaultyDisk
|
return errFaultyDisk
|
||||||
}
|
}
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
srcIsDir := HasSuffix(srcPath, SlashSeparator)
|
srcIsDir := HasSuffix(srcPath, SlashSeparator)
|
||||||
|
|
Loading…
Reference in New Issue