diff --git a/server/plugin/plg_backend_s3/index.go b/server/plugin/plg_backend_s3/index.go index d1795c75..227e8ce1 100644 --- a/server/plugin/plg_backend_s3/index.go +++ b/server/plugin/plg_backend_s3/index.go @@ -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),