cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: How to get meta data of current path

How to get meta data of current path

VahagnGhaz
Explorer | Level 3

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 2

Greg-DB
Dropbox 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".

VahagnGhaz
Explorer | Level 3
Okay, thanks for your reply.
Need more support?