1
mirror of https://github.com/rclone/rclone synced 2024-12-21 11:45:56 +01:00

jottacloud: minor improvement in quota info (omit if unlimited)

This commit is contained in:
albertony 2018-09-06 19:55:16 +02:00 committed by Nick Craig-Wood
parent 22ee4151fd
commit a1f935e815
2 changed files with 10 additions and 1 deletions

View File

@ -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
}

View File

@ -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