Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
tfrysinger
4 years agoExplorer | Level 4
searchContinueV2 seems to not work on the last batch it should find
I am using the Java2 SDK to perform a search for directories matching a pattern, then deleting them. The directories are named as:
ROOT_DIR_CONSTANT/p_<YYYYMMDD>/p_<ID 1>_<SUB ID 1>
For e...
tfrysinger
4 years agoExplorer | Level 4
Greg -
Is there a way with listFolders to have it match on a partial directory name? That is why I was using search. Because while I know the root dir name, and I can specifically check the name of the directory associated with a date, AND I know the first ID, I do not know in advance what the last portion of the directory name might be. i.e. given this directory path:
/TestingRootDir/p_20211018/p_44c92de4-ddd6-42dc-823a-9dkkf35j5sds_test001
I can derive this much ahead of time: /TestingRootDir/p_20211018/p_44c92de4-ddd6-42dc-823a-9dkkf35j5sds
But the last '_test001' may be any number of a combination of characters. So what I was trying to do is get the list of directories associated with the first portion of the directory name only.
Can listFolder do that?
Thanks!
Greg-DB
Dropbox Community Moderator
4 years agoNo, the listFolder functionality doesn't support partial matching like that. You would need to list the nearest parent folder and then apply whatever filtering you want on the results client-side.
About Discuss Dropbox Developer and API
Explore Dropbox Developer & API discussions with developers like you.
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!