"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
onedrive: fix disk usage for sharepoint
Nick Craig-Wood0906f8dd3ba9
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex 752fb5e99..ac02b1188 100755--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -1247,6 +1247,10 @@ func (f *Fs) About(ctx context.Context) (usage *fs.Usage, err error) {return nil, errors.Wrap(err, "about failed")}q := drive.Quota+ // On (some?) Onedrive sharepoints these are all 0 so return unknown in that case+ if q.Total == 0 && q.Used == 0 && q.Deleted == 0 && q.Remaining == 0 {+ return &fs.Usage{}, nil+ }usage = &fs.Usage{Total: fs.NewUsageValue(q.Total), // quota of bytes that can be usedUsed: fs.NewUsageValue(q.Used), // bytes in use