Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

mansi2812's avatar
mansi2812
Explorer | Level 3
5 years ago
Solved

C# dropbox SDK listfoldercontinueasync(string cursor) not working

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.  

6 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    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's avatar
    mansi2821
    Explorer | Level 4
    5 years ago

    -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)

  • mansi2821's avatar
    mansi2821
    Explorer | Level 4
    4 years ago

    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's avatar
    mansi2821
    Explorer | Level 4
    4 years ago

    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's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    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.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with 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!