From b74ef6d5f468c584a1c8e4cd8844510b53582161 Mon Sep 17 00:00:00 2001 From: ebozduman Date: Thu, 14 Sep 2017 18:09:12 -0500 Subject: [PATCH] Fixes the if condition when uploads.json file cannot be found (#4883) --- cmd/fs-v1-multipart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fs-v1-multipart.go b/cmd/fs-v1-multipart.go index 2981b0df1..51562bf8d 100644 --- a/cmd/fs-v1-multipart.go +++ b/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)