cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How to get meta data of current path

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
Highlighted

Re: How to get meta data of current path

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

Highlighted

Re: How to get meta data of current path

Explorer | Level 3
Okay, thanks for your reply.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?