Fixes the if condition when uploads.json file cannot be found (#4883)

master
ebozduman 7 years ago committed by Dee Koder
parent 9925640da8
commit b74ef6d5f4
  1. 2
      cmd/fs-v1-multipart.go

@ -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)

Loading…
Cancel
Save