Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
littleninja
8 years agoExplorer | Level 3
Creating a syncing folder in the Dropbox Desktop folder with Node JS
I'm developing a desktop (electron) app that integrates with the Dropbox javascript SDK and uses node js to perform tasks on the local machine, allowing an online and offline experience. All I am...
littleninja
8 years agoExplorer | Level 3
Thanks for your reply... I see what you're saying but managing the smart sync settings doesn't solve my problem... I guess what I'm trying to do is manually sync a file or folder from dropbox.com to the local dropbox folder by retrieving the folder/file information and then either creating the folder or downloading the file and saving it in the correct location. Creating a folder manually, like the Hello one, is exactly what I need to be able to do programmatically through node js.
Is there an endpoint in the Dropbox API somewhere that requests a manual sync of a folder or file to the local dropbox folder? That would answer all my problems!!
Greg-DB
Dropbox Staff
8 years agoNo, unfortunately there isn't an API call like that. We'll consider it a feature request, but I can't promise if/when it would be implemented. Sorry I don't have better news for you!
- littleninja8 years agoExplorer | Level 3
Surely then you can tell me how creating a folder manually differs from creating one through node js? I can't believe what I'm trying to do isn't achievable?!?!
- Greg-DB8 years ago
Dropbox Staff
The difference is that with the Node JS library, you're communicating with the Dropbox servers directly, so any changes are essentially remote changes that get synced down to the desktop client, respecting the online only setting for the default behavior for new content. (I.e., the folder creation API call would work whether or not the desktop client is installed.)
When creating the folder manually, you're operating on the local filesystem, not directly on Dropbox.
Sorry I don't have better news for you!- littleninja8 years agoExplorer | Level 3
I see what you're saying but I am acting purely on the local filesystem with Node js... the process has absolutely no connection to the dropbox API whatsoever... it is even done when there is not internet connection, so I'm really at a loss as to why a folder created in the local directory by node js differs to one created manually in the local directory... do you see what I'm saying?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,972 PostsLatest Activity: 2 days ago
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 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!