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;