mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-03 14:25:15 +01:00
fix (uint64): size
This commit is contained in:
parent
4b0de2454a
commit
e74159f526
1 changed files with 2 additions and 2 deletions
|
|
@ -211,9 +211,9 @@ func (this S3Backend) Ls(path string) (files []os.FileInfo, err error) {
|
|||
if i == 0 && *object.Key == p.path {
|
||||
continue
|
||||
}
|
||||
size := 0
|
||||
var size int64 = 0
|
||||
if object.Size != nil {
|
||||
size = int(*object.Size)
|
||||
size = *object.Size
|
||||
}
|
||||
files = append(files, &File{
|
||||
FName: filepath.Base(*object.Key),
|
||||
|
|
|
|||
Loading…
Reference in a new issue