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

SauravAnand's avatar
SauravAnand
Explorer | Level 4
7 years ago

Issue with ListFolderAsync()

Hello,

 

I'm using ListFolderAsync() to fetch all albums of Dropbox authorized account in my application and its returning too but the issue is when I'm using:

 

var list = await dbclient.Files.ListFolderAsync(path, true);

 

then i'm getting 20 albums with names etc. But when I'm using:

 

var list = await dbclient.Files.ListFolderAsync(path, true);
while (list.HasMore)
{
   list = await dbclient.Files.ListFolderContinueAsync(list.Cursor);
}

 

then i'm getting 10 different albums with different names etc.

Why i'm getting different-different albums from above both methods?

 

Any help would be appreciated.

Thanks in advance.

    • SauravAnand's avatar
      SauravAnand
      Explorer | Level 4

      Hi Greg,

       

      Thank you very much for all your hep & support. I'm able to get all the albums now and its working fine. As you said i didn't save my prev entries before query to ListFolderContinue.

       

      Thank you.