We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Sam S.3
10 years agoNew member | Level 1
ListFolder recursive does not list every file
I am using the Dropbox .NET API. When I call ListFolder with recurse=true it seems to miss a small number of files which are deeply nested. I have a reproduceable case.
The files I expect to see are visible online and locally. They are listed if I ListFolder on the container or parent folder. But if I do the same with the root then it doesn't get returned.
I am checking result.HasMore and then using "Continue". Code is below.
Known issue? Am I doing something stupid?
ListFolderResult result = await this.Client.Files.ListFolderAsync(
new ListFolderArg(path, true, false, deleted));
foreach (var entry in result.Entries)
{
handleEntry(entry);
}
while (result.HasMore)
{
result = await this.Client.Files.ListFolderContinueAsync(new ListFolderContinueArg(result.Cursor));
foreach (var entry in result.Entries)
{
handleEntry(entry);
}
}
return result.Cursor;
1 Reply
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the report! It looks like you also opened a ticket about this so we'll follow up on this there.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!