Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

seafile: fix accessing libraries > 2GB on 32 bit systems - fixes #4588

Muffin King61fe068c9067
diff --git a/backend/seafile/api/types.go b/backend/seafile/api/types.go
index 4df24767c..9fb95c0cf 100644
--- a/backend/seafile/api/types.go
+++ b/backend/seafile/api/types.go
@@ -46,7 +46,7 @@ type Library struct {
Encrypted bool `json:"encrypted"`
Owner string `json:"owner"`
ID string `json:"id"`
- Size int `json:"size"`
+ Size int64 `json:"size"`
Name string `json:"name"`
Modified int64 `json:"mtime"`
}
diff --git a/backend/seafile/seafile.go b/backend/seafile/seafile.go
index 7eb36080d..2c46812ed 100644
--- a/backend/seafile/seafile.go
+++ b/backend/seafile/seafile.go
@@ -1004,7 +1004,7 @@ func (f *Fs) listLibraries(ctx context.Context) (entries fs.DirEntries, err erro
for _, library := range libraries {
d := fs.NewDir(library.Name, time.Unix(library.Modified, 0))
- d.SetSize(int64(library.Size))
+ d.SetSize(library.Size)
entries = append(entries, d)
}