Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
SrustiThakkar
8 years agoHelpful | Level 6
Dropbox Client sync
Hello,
Can you tell me how Dropbox client works? Because whenever I made changes on Dropbox Server it sync data with my desktop immediately. I want to create my own client and perform sync same...
Ed-
8 years agoExplorer | Level 4
SrustiThakkar ha escrito:Hello,
Can you tell me how Dropbox client works? Because whenever I made changes on Dropbox Server it sync data with my desktop immediately. I want to create my own client and perform sync same as dropbox client using Dropbox API. So please can you provide some example on dropbox client sync operation.
I can add that you need to use the /list_folder/longpoll API for being notified about changes in Dropbox files or folders.
The drawback is that you need to upload or download the whole file for any change, no matter if it has 1 GB and only changed two bytes.
- Ed-8 years agoExplorer | Level 4
And about being notified about changes in the Windows file system, read this.
- SrustiThakkar8 years agoHelpful | Level 6
Thank You for your Help.
- SrustiThakkar8 years agoHelpful | Level 6As you said use FileSystemWatcher Class for listen local directory changes, I have used it. And for listen server side changes I have used list_folder_continue method of Dropbox API. The problem is If new file Uploaded on server then it download in local directory,but when file is downloaded and created, It call FileSystemWatcher Created Method and Upload Same file on the server. How can i manage that if file is download then watcher event doesn't fire.
- Ed-8 years agoExplorer | Level 4Your program should keep track of the files it downloads and ignore those notifications.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!