views:

528

answers:

3

Is there a good .NET file syncing library? It can be pretty basic and only needs to work on local and mapped drives (no server client model like rsync is needed).

And yes, I know there is the MS Sync Services, but that is a lot more than what I need.

+1  A: 

Can you put something together yourself based on the FileSystemWatcher component, or are you looking for something more complete?

Joel Coehoorn
I had an interesting problem with FileSystemWatchers when I tried to use them on a networked drive. When the network connection got temporarily hosed up, the FileSystemWatcher on the remote directory stopped working and wouldn't once the network connection was restored.
itsmatt
Yeah, looking for something more complete.
Adam Haile
+1  A: 

Microsoft's SyncToy tool installs an API that you can call from your code, according to the article at:

http://www.codeproject.com/KB/vb/SyncToy_Helper.aspx

jeffm
A: 

There is also Microsoft's Sync Framework. SyncToy is actually using the sync framework to implement it's functionality. Here are some of the APIs:

Luke Quinane