如何使用C#以编程方式将Dropbox与本地文件夹同步

问题描述:

Hello All!
I need to create a client that will sync  local folders to a remote server and i am using dropbox or any other client already created.
What are your opinions about what should i use? I have looked on MS Sync Framework but i still haven't found anyone using it over the internet.
Any ideas about this topic will be very appreciated!

I have Tried this code "http://code.msdn.microsoft.com/File-Synchronization-516e3ad7";





我尝试了什么:



您的问题不清楚是要从头开始编写客户端还是使用现有客户端客户端 - iirc,Dropbox有一个客户端,你可以在你的机器上安装同步文件夹到云端



如果你要建立自己的客户端,那么你就是看看类似的东西: -



DropNet / DropNet at master·DropNet / DropNet·GitHub [ ^ ]







GitHub - saguiitay / DropboxRestAPI: C#中的Dropbox REST API客户端 [ ^ ]





您将需要知道如何做以下事情: -



a)如何读取文件系统以获取初始文件详细信息

b)如何读取dropbox文件夹并获取文件详细信息

c)如何检测文件系统更改? FileSystemWatcher

d)如何使用上面显示的REST客户端与DropBox进行交互

e)如何使用来自的信息从文件系统中获取同步到dropbox的差异a),b)



[/编辑]
Your question isn't clear as to whether you want to write a client from scratch or use an existing client - iirc, Dropbox has a client you can install on your machine to sync a folder to the cloud

If you with to build your own client, then you're looking at something like :-

DropNet/DropNet at master · DropNet/DropNet · GitHub[^]

or

GitHub - saguiitay/DropboxRestAPI: Dropbox REST API client in C#[^]


you will need to know how to do things like :-

a) how to read the filesystem to get the initial file details
b) how to read a dropbox folder and get file details
c) how to detect file system changes ? FileSystemWatcher
d) how to use the REST client(s) shown above to interact with DropBox
e) how to get the differences in the filesystems to sync to dropbox using the info from a), b)

[/Edit]