"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
dropbox: fix used space on dropbox team accounts
Nick Craig-Woodf45cee831ff2
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.goindex 1b647af08..0eea08c53 100644--- a/backend/dropbox/dropbox.go+++ b/backend/dropbox/dropbox.go@@ -1231,18 +1231,21 @@ func (f *Fs) About(ctx context.Context) (usage *fs.Usage, err error) {return nil, err}var total uint64+ var used = q.Usedif q.Allocation != nil {if q.Allocation.Individual != nil {total += q.Allocation.Individual.Allocated}if q.Allocation.Team != nil {total += q.Allocation.Team.Allocated+ // Override used with Team.Used as this includes q.Used already+ used = q.Allocation.Team.Used}}usage = &fs.Usage{- Total: fs.NewUsageValue(int64(total)), // quota of bytes that can be used- Used: fs.NewUsageValue(int64(q.Used)), // bytes in use- Free: fs.NewUsageValue(int64(total - q.Used)), // bytes which can be uploaded before reaching the quota+ Total: fs.NewUsageValue(int64(total)), // quota of bytes that can be used+ Used: fs.NewUsageValue(int64(used)), // bytes in use+ Free: fs.NewUsageValue(int64(total - used)), // bytes which can be uploaded before reaching the quota}return usage, nil}