Discuss Dropbox Developer & API
I am using a root folder to temporarily store files in what could be thousands of sub-folders under that root. I want to write a routine that would run daily from my website to "clean out" folders that are more than 30 days old. I have been able to get the Dropbox NPM module integrated and can call Dropbox via the Javascript API, but I'm seeing some odd results, and also am not sure the best way to go about efficiently finding the folders I need to delete each day.
Here the relevant part of the code that runs on the website:
To restrict search result to matching on the filename and not content, you should set FilesSearchOptions.filename_only to true. (By the way, your match_field_options doesn't look set correctly. That takes a FilesSearchMatchFieldOptions which only has a boolean include_highlights property.)
Anyway, the Dropbox API does not offer a modified time for folders, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
Likewise, FilesSearchOrderBy currently does not support ordering by name, but we'll consider that a feature request as well.
Apologies I don't have better news for you!
Hi there!
If you need more help you can view your support options (expected response time for a 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!