Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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?
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."
Thank you very much for sharing the codes!!
We are looking at it to learn more knowledge and experience from the project.
Hi there!
If you need more help you can view your support options (expected response time for a 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!