Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
vas1992
3 years agoHelpful | Level 5
Python. Get full storage information
Hello. How can I display the full size of my storage using python?
I was able to get only the occupied volume:
print(dbx.users_get_space_usage().used)
The only thing I could do was get ...
- 3 years ago
vas1992 Здравко is correct; here's what a simple usage of this may look like:
allocation = dbx.users_get_space_usage().allocation if allocation.is_individual(): print("Individual allocation:") print(allocation.get_individual().allocated) elif allocation.is_team(): print("Team allocation:") print(allocation.get_team().allocated)
vas1992
3 years agoHelpful | Level 5
Something I did not understand at all. It is possible as much as possible in detail, for stupid?
I use:
print(dropbox.users.SpaceAllocation('individual', value=None).get_individual())
I am getting an error:
Traceback (most recent call last):
File "/home/vas/MyScripts/UploadCSV/RMS_up_Dx.py", line 108, in <module>
space_usage(dbx)
File "/home/vas/MyScripts/UploadCSV/RMS_up_Dx.py", line 66, in space_usage
print(dropbox.users.SpaceAllocation('individual', value=None).get_individual())
File "/home/vas/.local/lib/python3.8/site-packages/stone/backends/python_rsrc/stone_base.py", line 145, in __init__
validator.validate_type_only(value)
File "/home/vas/.local/lib/python3.8/site-packages/stone/backends/python_rsrc/stone_validators.py", line 543, in validate_type_only
raise ValidationError('expected type %s, got %s' %
stone.backends.python_rsrc.stone_validators.ValidationError: expected type dropbox.users.IndividualSpaceAllocation, got null
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!