How can I know if a directory or files has been modify before download it.
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.
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.
Did you have an example, I got a diferent cursor value in each request although the folder don´t have changes.
var list3 = await dbx.Files.ListFolderAsync(string.Empty);
first request
list3.Cursor = AAG88yckZh...
second request
list3.Curso=AAHI9m7iCl...
never is the same cursor value.