mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
posix: Use preparePath only for paths used with syscall or os functions (#3377)
This commit is contained in:
committed by
Harshavardhana
parent
0d59ea1e94
commit
feb6685359
@@ -957,7 +957,7 @@ func (s *posix) RenameFile(srcVolume, srcPath, dstVolume, dstPath string) (err e
|
||||
}
|
||||
|
||||
// Remove parent dir of the source file if empty
|
||||
if parentDir := slashpath.Dir(preparePath(srcFilePath)); isDirEmpty(parentDir) {
|
||||
if parentDir := slashpath.Dir(srcFilePath); isDirEmpty(parentDir) {
|
||||
deleteFile(srcVolumeDir, parentDir)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user