ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm developing an application that might use DropBox as it's storage.
My question is, you can link folders between accounts, so that more than 1 person could upload/download to the same folder.
Do I have to worry about threading? If two people were to copy a file to the desktop from Dropbox at the same time, does Dropbox handle it, or does my application have to handle it?
Example:
Bob and Sarah share a folder using Dropbox. He uploads his Photoshop creations so Sarah can download them and use them in her presentation. If Bob started copying a file from the shared folder, which Sarah is also copying, will I run into a problem? What happens if Bob updates a file that Sarah is in the middle of copying? Do I have to worry about this? Does Dropbox handle it?
Last edited by Nexusfactor; 06-13-2015 at 10:06 AM.
I refuse to use remote storage except for a few POP emails but I am inclined to the view that several people copying a file at the same time will virtually never be an issue with any software.
It will be more risky if a file is being modified at the same time it is being downloaded but most mature software will cope with this.
Send an email to DropBox support and post their reply here.
You'd have to ask the folks at DropBox how they handle file-locking on their end: do they allow Bob to update a file, if Sarah is also copying it? Or, do they (say...) implement a "versioning" system, in which case the new file that Bob is uploading is "version n+1 of this file," distinct from the "version n" that Sarah is copying (and may continue to copy, without interference).
I am not sufficiently familiar with the DropBox service (in this edge-case ...) to provide an answer, but I am sure that DropBox can, if it is not already a FAQ.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.