Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gDrive rclone ls with display quotaBytesTotal instead of fileSize #3135

Open
MurzNN opened this issue Apr 25, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@MurzNN
Copy link

commented Apr 25, 2019

At now rclone ls command on Google Drive displays only real file size (fileSize argument from Google API).

Is this possible to switch rclone display number value from fileSize to quotaBytesTotal (or add quotaBytesTotal as second number in output), for understanding file quota usage in my gDrive?

If not possible, can you accept this as feature request, so implement something like rclone ls --size=quota?

Same feature also will be very useful for other storage providers too.

@MurzNN

This comment has been minimized.

Copy link
Author

commented Apr 25, 2019

There are exists also rclone size command, that displays total size of files in folder, but it miss argument to calculate quotaBytesTotal API value from file instead of fileSize, so add same argument to size function will be great too.

@ncw

This comment has been minimized.

Copy link
Owner

commented Apr 25, 2019

I see what you mean looking at the drive v3 docs.

We could make a flag which caused rclone to read the size of things as quotaBytesTotal easily enough - say --drive-size-as-quota. However this would break syncing very badly if it was set for a sync! This would make rclone ls and rclone size both calculate the quotas.

Would you like to work on that?

Note that you can use rclone about remote: to see information about the total quota.

@MurzNN

This comment has been minimized.

Copy link
Author

commented Apr 25, 2019

Thanks for quick reply! Making flag like --drive-size-as-quota will be good solution, for don't break syncing can we enable it only for ls and size modes, and ignore in other modes? I want to work on this, but I'm not so good programmer in Go, I know only PHP and JS :( So I can help only with testing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.