cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn more here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C# dropbox SDK listfoldercontinueasync(string cursor) not working

C# dropbox SDK listfoldercontinueasync(string cursor) not working

mansi2812
Explorer | Level 3
Go to solution

I am using ListFolderContinueAsync(string cursor) of C# dropbox sdk for retrieve updated files from dropbox but I am not able to get updated files and folder from dropbox using this method.  

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

To get nested entries like that, you'll need to set ListFolderArg.Recursive to true when first calling ListFolderAsync.

View solution in original post

6 Replies 6

Greg-DB
Dropbox Staff
Go to solution

I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:

  • the version number of the platform and SDK/library you are using, if any
  • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access/refresh token(s)
  • the full text of any error or unexpected output

mansi2821
Explorer | Level 4
Go to solution

-using dropbox.net SDK

-CodeSnippet
var listfoldercontinuearg = new ListFolderContinueArg(cursor);
var listFolderResult = dropboxClient.Files.ListFolderContinueAsync(listfoldercontinuearg).Result;


using ablove code snippet, able to fetch chenges made on the home location (ie.:\\home).
but not able to fetch changes which are made on subfolder(ie.:\\home\subfolder)

Greg-DB
Dropbox Staff
Go to solution

To get nested entries like that, you'll need to set ListFolderArg.Recursive to true when first calling ListFolderAsync.

mansi2821
Explorer | Level 4
Go to solution

var listfoldercontinuearg = new ListFolderContinueArg(previousDeltaLink);

listFolderResult = dropboxClient.Files.ListFolderContinueAsync(listfoldercontinuearg).Result;

ProcessLogger.Info($"Processing {listFolderResult.Entries.Count} items..");

foreach (var entry in listFolderResult.Entries)
{}

 

this is my exact code can you tell where do i need to set ListFolderArg.recursive to true

mansi2821
Explorer | Level 4
Go to solution

i am calling first time ListFolderAsync here 

 

 

ListFolderResult listFolderResult;


listFolderResult = dropboxClient.Files.ListFolderAsync(controlpath, true, false, false, false, true, 200).Result;

 

and i have here setted isrecursive to true still not getting results 

Greg-DB
Dropbox Staff
Go to solution

I see you've also posted this in a new thread, so I'll follow up with you there.

 

For future reference, please note it is not necessary to post the same question in multiple threads.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    mansi2821 Explorer | Level 4
What do Dropbox user levels mean?