From a1f935e815dd1a590e7413d8b20fea655ee18fd3 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Thu, 6 Sep 2018 19:55:16 +0200 Subject: [PATCH] jottacloud: minor improvement in quota info (omit if unlimited) --- backend/jottacloud/jottacloud.go | 5 ++++- docs/content/jottacloud.md | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go index f27c5fc6d..80460767e 100644 --- a/backend/jottacloud/jottacloud.go +++ b/backend/jottacloud/jottacloud.go @@ -666,9 +666,12 @@ func (f *Fs) About() (*fs.Usage, error) { } usage := &fs.Usage{ - Total: fs.NewUsageValue(info.Capacity), Used: fs.NewUsageValue(info.Usage), } + if info.Capacity > 0 { + usage.Total = fs.NewUsageValue(info.Capacity) + usage.Free = fs.NewUsageValue(info.Capacity - info.Usage) + } return usage, nil } diff --git a/docs/content/jottacloud.md b/docs/content/jottacloud.md index 85c832c60..b7064dee2 100644 --- a/docs/content/jottacloud.md +++ b/docs/content/jottacloud.md @@ -105,6 +105,12 @@ Any files you delete with rclone will end up in the trash. Due to a lack of API Jottacloud supports file versioning. When rclone uploads a new version of a file it creates a new version of it. Currently rclone only supports retrieving the current version but older versions can be accessed via the Jottacloud Website. +### Quota information ### + +To view your current quota you can use the `rclone about remote:` +command which will display your usage limit (unless it is unlimited) +and the current usage. + ### Limitations ### Note that Jottacloud is case insensitive so you can't have a file called