cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App 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: 

Re: Python SDK: How to dowload files with wildcard in filename?

Python SDK: How to dowload files with wildcard in filename?

Flya
Explorer | Level 4
Go to solution

Hi,

 

is there a way to download a file with a random number in the filename?

Something like 

metadata = dbx.files_download_to_file(downfile, '/%s*' % testfile)

All the files a in the following format

knownstring--randomnumber.txt

 

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

The API doesn't offer the ability to download with a wildcard like this. You'll need to call once per file with the exact file path.

 

You can get the file names using files_list_folder and files_list_folder_continue.

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution

The API doesn't offer the ability to download with a wildcard like this. You'll need to call once per file with the exact file path.

 

You can get the file names using files_list_folder and files_list_folder_continue.

Need more support?