Forum Discussion

rhernandez8305's avatar
rhernandez8305
Helpful | Level 6
8 years ago

Recently modified Direcories or files

How can I know if a directory or files has been modify before download it.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The best way to keep track of changes in folders via the API is to use the /2/files/list_folder[/continue] endpoints. By storing and re-using the latest cursor you received and calling back to /2/files/list_folder/continue when desired, you can see just what changed, if anything. The documentation for those endpoints contains more information.

     

    For reference, there are corresponding native methods for those endpoints in the official SDKs, such as ListFolder and ListFolderContinue in the .NET SDK, for example.

    • rhernandez8305's avatar
      rhernandez8305
      Helpful | Level 6

      Thanks for reply! I had test the functions but the cursor value change in each request, just the files' hash value is the same. With the files' hash value I know if the file changed but the dictories I don't know how do it, the directories doesn´t have hash value.

       

      Thanks.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        What kind of "change" for the folder are you looking for exactly? By storing and re-using the latest cursor you received, you can get any/all changes in the folder. If you want to receive changes in subfolders too, set recursive=true.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,948 PostsLatest Activity: 4 hours ago
351 Following

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 or Facebook.

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!