mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 05:30:24 +03:00
storage: DeleteFile should return errFileNotFound for ENOENT. (#2978)
This commit is contained in:
@@ -224,8 +224,7 @@ func cleanupDir(storage StorageAPI, volume, dirPath string) error {
|
||||
delFunc = func(entryPath string) error {
|
||||
if !strings.HasSuffix(entryPath, slashSeparator) {
|
||||
// Delete the file entry.
|
||||
err := storage.DeleteFile(volume, entryPath)
|
||||
return traceError(err)
|
||||
return traceError(storage.DeleteFile(volume, entryPath))
|
||||
}
|
||||
|
||||
// If it's a directory, list and call delFunc() for each entry.
|
||||
|
||||
Reference in New Issue
Block a user