Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
VahagnGhaz
7 years agoExplorer | Level 3
How to get meta data of current path
Hi ! I just need to get metadata of my current path, so I use
dropbox.Dropbox(my_token).files_get_metadata('')
But I got this error
dropbox.stone_validators.ValidationError: '' did not match pattern '(/(.|[ ......)'
I tried '.' , '/' instead of ' ' , but i got the same error
It's strange, cause when I want to list my current dictionaries files/folder with the code below, I get the result I need:
dropbox.Dropbox(my_token).files_list_folder('').entries
So is there any way I can get my current dictionarie's metadata.
Thank you !
2 Replies
- Greg-DB7 years ago
Dropbox Community Moderator
Retrieving the metadata for the root folder ('') is not supported. It doesn't have any specific metadata to return, but you can list its contents, as you found. Accordingly, attempting 'files_get_metadata' will fail.
You can get the metadata for a non-root folder by specifying the path, e.g., like "/FolderName".
- VahagnGhaz7 years agoExplorer | Level 3Okay, thanks for your reply.
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!