blapaz
blapaz

Reputation: 334

Google and One Drive Folders

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!

enter image description here

Upvotes: 0

Views: 134

Answers (1)

Peter Nied
Peter Nied

Reputation: 1885

Both of these services have a couple of fundimental features

  1. the ability to upload and download content on a remote file system
  2. a method to determine what changes have been made on that remote file system
  3. a method to determine what changes have been made on the local file system
  4. a method to manage synchronising changes between the remote and local file systems

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

Related Questions