mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-20 00:15:40 +00:00
fix (s3): better handling of missing size info
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user