fix (s3): better handling of missing size info

This commit is contained in:
MickaelK 2025-01-10 16:20:28 +11:00
parent e74159f526
commit 8ace343b86

View file

@ -211,7 +211,7 @@ func (this S3Backend) Ls(path string) (files []os.FileInfo, err error) {
if i == 0 && *object.Key == p.path {
continue
}
var size int64 = 0
var size int64 = -1
if object.Size != nil {
size = *object.Size
}