mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-11 02:09:06 +01:00
fix (s3): better handling of missing size info
This commit is contained in:
parent
e74159f526
commit
8ace343b86
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue