"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
webdav: fix About/df when reading the available/total returns 0
Nick Craig-Wood2fbb504b6650
diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.goindex 96b8a053b..de1e9f3b3 100644--- a/backend/webdav/webdav.go+++ b/backend/webdav/webdav.go@@ -916,11 +916,13 @@ func (f *Fs) About() (*fs.Usage, error) {return nil, errors.Wrap(err, "about call failed")}usage := &fs.Usage{}- if q.Available >= 0 && q.Used >= 0 {- usage.Total = fs.NewUsageValue(q.Available + q.Used)- }- if q.Used >= 0 {- usage.Used = fs.NewUsageValue(q.Used)+ if q.Available != 0 || q.Used != 0 {+ if q.Available >= 0 && q.Used >= 0 {+ usage.Total = fs.NewUsageValue(q.Available + q.Used)+ }+ if q.Used >= 0 {+ usage.Used = fs.NewUsageValue(q.Used)+ }}return usage, nil}