0
votes

I'm using the Core API on Android to sync folders in Dropbox to a local folder.

I managed to list the files, download them, save revision on a database all working pretty well.

But I forgot I need to delete the local files that were deleted in Dropbox, so I figured I could check the isDeleted property on an Entry. But the way I do is get the list of files in contents for the folder Entry but that does not return older files that were deleted.

How can I get the deleted files from Dropbox, to check if they still exist locally? I would not like to have to cross check if the files in my folder exist on Dropbox, only from Dropbox to my folder.

1

1 Answers

1
votes

There is an include_deleted parameter on the /metadata HTTP endpoint, but this isn't implemented in the Android Core SDK's metadata method. A better overall solution is to use delta anyway. This is an efficient way to keep your local state up to date with the Dropbox server state, and it will indicate to you when and what items have been deleted so you can remove them from your local state.