cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We've been busy working on some major updates to the Community, so check out what's changing, what’s staying the same and what you can expect from the Dropbox Community right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

How can i use Sync API to check if a file is deleted by other computer?

How can i use Sync API to check if a file is deleted by other computer?

C. Tim
New member | Level 2

We are evaluating Sync API for our file sync function in a new app.
Our app stores user data in local file system and allow them to sync the local file system with a folder in users' dropbox account.
Here comes a question:
When we compare all local files with their remote correspondences. If there is a file exists in local, but not in dropbox,
How can we know if it's deleted from dropbox by other dropbox clients or it's simple a new file from local?

11 Replies 11

Brendan D.
Explorer | Level 4

I've been working with a project called KRCloudSync which includes the ability to sync a folder of files locally with Dropbox. It seems to work fairly well except it doesn't handle the situation of deleting a local file causing that file to be deleted in Dropbox. But I'm working on a workaround for it. You can see it here: https://github.com/MindPreview/KRCloudSync

I did not write it, but it does seem to be pretty good. It's written in Objective-C for Mac and iOS. It would be great if Dropbox allowed this kind of sync by default though. I shouldn't have to use the Dropbox specific API to read and write files. I should be able to read and write files in the normal way using NSFileManager and other NSFoundation classes and have the Dropbox system just monitor a folder and then sync that folder with your Dropbox account.

I have all kinds of places in my app that I read and write files. It would be a shame to have to add in a bunch of conditionals now to read and write all my files using the Dropbox Sync API when NSFoundation does a perfectly good job.

Ultimately Dropbox should have a single API call that lets you say "Ok Dropbox, watch this folder for changes and sync it with my Dropbox account, and let me know if anything has changed on either side."

C. Tim
New member | Level 2

Thank you very much for sharing the codes!!
We are looking at it to learn more knowledge and experience from the project.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    C. Tim New member | Level 2
  • User avatar
    Brendan D. Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?