Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Victor V.3
9 years agoExplorer | Level 3
[java sdk v2] check if entry of a listResult is a file
Hi, With Java Sdk V1 I was able to do build a list of my own type of objects based only on the files I was finding in a dropbox path: List<DbxEntry> dbxEntries = dbxClient.searchFileAndFolde...
- 9 years agoHi Victor, you can use instanceof to determine if a particular entry is a file or folder, as shown here:
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/FilesAdapter.java#L82
Hope this helps!
Greg-DB
Dropbox Community Moderator
9 years agoHi Victor, you can use instanceof to determine if a particular entry is a file or folder, as shown here:
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/FilesAdapter.java#L82
Hope this helps!
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/FilesAdapter.java#L82
Hope this helps!
Victor V.3
9 years agoExplorer | Level 3
Hi Greg,
This solves my problem indeed.
Thanks.
-victor
This solves my problem indeed.
Thanks.
-victor
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!