You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
VahagnGhaz
6 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 !
- Greg-DBDropbox Staff
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".
- VahagnGhazExplorer | Level 3Okay, thanks for your reply.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf 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 or Facebook.
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!