如何使用C#以编程方式将Dropbox与本地文件夹同步 [英] How do I sync dropbox with local folder programmatically using C#

查看:177
本文介绍了如何使用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]


这篇关于如何使用C#以编程方式将Dropbox与本地文件夹同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆