Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.
Forum Discussion
Flya
8 years agoExplorer | Level 4
Python SDK: How to dowload files with wildcard in filename?
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
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.
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,039 PostsLatest Activity: 2 days ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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!