mirror of
https://github.com/minio/minio.git
synced 2025-02-02 17:35:58 -05:00
allow creating missing parent folders during moveToTrash() (#19155)
This commit is contained in:
parent
828d4df6f0
commit
44b70eb646
@ -1177,7 +1177,7 @@ func (s *xlStorage) moveToTrash(filePath string, recursive, immediatePurge bool)
|
|||||||
targetPath := pathutil.Join(s.drivePath, minioMetaTmpDeletedBucket, pathUUID)
|
targetPath := pathutil.Join(s.drivePath, minioMetaTmpDeletedBucket, pathUUID)
|
||||||
|
|
||||||
if recursive {
|
if recursive {
|
||||||
err = renameAll(filePath, targetPath, pathutil.Join(s.drivePath, minioMetaTmpDeletedBucket))
|
err = renameAll(filePath, targetPath, pathutil.Join(s.drivePath, minioMetaBucket))
|
||||||
} else {
|
} else {
|
||||||
err = Rename(filePath, targetPath)
|
err = Rename(filePath, targetPath)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user