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
pramodkr200
12 months agoNew member | Level 2
Not able to fetch all files and folder
I have 40 files and folder in root folder, but I am getting only 25 from them. I am using my app in 3 - 4 devices. Is any limitation from dropbox to access the all files and folder.
pramodkr200
New member | Level 2
yes I can see all files and folder on web to follow this link www.dropbox.com/home.
But I am using this code that not response all files and folder.
DbxClientV2 mDbxClient = new DbxClientV2(DbxRequestConfigFactory.getRequestConfig(), accessToken);
try {
ListFolderResult listFolderResult= mDbxClient.files().listFolder("");
for (Metadata metadata : listFolderResult.getEntries()) {
String fileName = metadata.getName();
Log.i("Fetch File", "file: " + fileName);
}
} catch (DbxException e) {
e.printStackTrace();
}
Greg-DB
12 months agoDropbox Staff
[Cross-linking for reference: https://github.com/dropbox/dropbox-sdk-java/issues/520 ]
pramodkr200 I understand that you are attempting to list all files/folders using listFolder. Note that this functionality is paginated and you are not guaranteed to get all of the results back in a single listFolder call, so make sure you implement support for listFolderContinue as well.
There are a few factors that can affect what/how much is returned in a single call, and that can vary over time due to a number of factors, e.g., as the state and contents of the account changes, etc, so you need to make sure you always have that implemented as documented.
Refer to the listFolder and listFolderContinue documentation for information on doing so.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,889 PostsLatest Activity: 2 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!