Reputation: 334
Just as a side project I want to be able to do an online file storage system. Thinking about some of the details and plans I want, I thought of the Google and One Drive Folders.
My question is how do they get folders on your pc that you can use to upload? Its seems like mapping a network drive but to a server or something.
I don't want an API necessarily. I would love to know how they do it and if could get pointed in the right direction as how to do this myself.
Thanks!
What I realized after posting this, is that there must be a program that kind of runs in the background. When a new file is recognized in the folder, it FTP the new files to the server.
Am I on the right track?
Also I forgot to post the screenshot of the folders I am talking about. Sorry!
Upvotes: 0
Views: 134
Reputation: 1885
Both of these services have a couple of fundimental features
For the OneDrive service, there is an API which enables programs to upload and download content #1, it also has a delta API that makes #2 straight forward.
Then for the OneDrive desktop client, it has filesystem watchers that get notified whenever files on the local system change for #3. Then finally this OneDrive desktop client has logic to determine the priority of changes and how to manage conflicts between the file system and the remote file store #4.
Upvotes: 1