mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
allow creating missing parent folders during moveToTrash() (#19155)
This commit is contained in:
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user