mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Fixes the if condition when uploads.json file cannot be found (#4883)
This commit is contained in:
@@ -43,7 +43,7 @@ func (fs fsObjects) isMultipartUpload(bucket, prefix string) bool {
|
||||
uploadsIDPath := pathJoin(fs.fsPath, bucket, prefix, uploadsJSONFile)
|
||||
_, err := fsStatFile(uploadsIDPath)
|
||||
if err != nil {
|
||||
if err == errFileNotFound {
|
||||
if errorCause(err) == errFileNotFound {
|
||||
return false
|
||||
}
|
||||
errorIf(err, "Unable to access uploads.json "+uploadsIDPath)
|
||||
|
||||
Reference in New Issue
Block a user