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
Thanks but your suggestion wouldn't help in this case anyway. As Greg explained, the Search API isn't guaranteed to return the exact results due to indexing and caching. I didn't know that until his answer. And sure, I could optimize the loop with an OR statement instead of testing at the bottom but that really is just that - perhaps an improvement in readability but nothing that would solve the problem he brought up.
Instead, as he suggested, I will use listFolder to list to the level that I can, then iterate through to find and delete the relevant subdirs.
Здравко
4 years agoLegendary | Level 20
tfrysinger wrote:... And sure, I could optimize the loop with an OR statement instead of testing at the bottom but that really is just that - perhaps an improvement in readability but nothing that would solve the problem he brought up.
...
Hmm... 😁 Are you sure it's something related to the "readability" only?! 😉 Yes, I'm not sure it will solve the issue (in particular), but it's definitely a BUG!!! Sleeping bug, able to "wake up" at some point, at least.
Be careful!
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!