We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Cris099
2 years agoNew member | Level 2
Automatically create folders based on the filename from the file I put in
Hi, Is it possible to create a folderstructure based on the filenames I put into the main folder? Example: If I have a Main folder and put in a file named ABCXXX into it, I then want it to automati...
Greg-DB
Dropbox Community Moderator
2 years agoIf you're a programmer, you can use the Dropbox API to automatically create folders and move files as desired. The following guides may be helpful:
And in particular, the following API endpoints would be useful:
- to list the contents of a folder: /2/files/list_folder and /2/files/list_folder/continue
- to create folders: /2/files/create_folder_v2 or /2/files/create_folder_batch
- to move files: /2/files/move_v2 or /2/files/move_batch_v2
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!