mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Use getObjectInfo() in both FS and XL ListObjects() to simplify and to return complete object information (#3247)
This commit is contained in:
committed by
Harshavardhana
parent
716316f711
commit
380d6c6435
@@ -93,13 +93,7 @@ func (xl xlObjects) listObjects(bucket, prefix, marker, delimiter string, maxKey
|
||||
result.Prefixes = append(result.Prefixes, objInfo.Name)
|
||||
continue
|
||||
}
|
||||
result.Objects = append(result.Objects, ObjectInfo{
|
||||
Name: objInfo.Name,
|
||||
ModTime: objInfo.ModTime,
|
||||
Size: objInfo.Size,
|
||||
MD5Sum: objInfo.MD5Sum,
|
||||
IsDir: false,
|
||||
})
|
||||
result.Objects = append(result.Objects, objInfo)
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user