cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know all about tools for creatives that work seamlessly with Dropbox, like Adobe? Well, check it out right 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: 

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

Re: How to get meta data of current path

Greg-DB
Dropboxer

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".

Re: How to get meta data of current path

VahagnGhaz
Explorer | Level 3
Okay, thanks for your reply.
Poll
Do you work or study in the creative industry? If so, which area?
If you use Adobe, don't forget to check out our latest integrations update here.
Who's talking

Top contributors to this post

  • User avatar
    VahagnGhaz Explorer | Level 3
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?