XL/listObjects: Ignore entry if getObjectInfo() returns errFileNotFound (#2004)

Fixes #1956
master
Bala FA 9 years ago committed by Harshavardhana
parent ce7d5eddbc
commit c88720ea2c
  1. 5
      xl-v1-list-objects.go

@ -62,6 +62,11 @@ func (xl xlObjects) listObjects(bucket, prefix, marker, delimiter string, maxKey
var err error
objInfo, err = xl.getObjectInfo(bucket, entry)
if err != nil {
// Ignore errFileNotFound
if err == errFileNotFound {
errorIf(err, "Unable to get object info", bucket, entry)
continue
}
return ListObjectsInfo{}, toObjectErr(err, bucket, prefix)
}
}

Loading…
Cancel
Save