You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Cris099
10 months 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 automatically create a folder inside the Main folder based on the first 3 letters of the filename and put the file into that folder.
Is this possible to do in dropbox?
- Greg-DBDropbox Staff
If 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.
5,888 PostsLatest Activity: 21 hours agoIf 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!