5

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.

Adam Haile
  • 30,705
  • 58
  • 191
  • 286

3 Answers3

2

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
  • 16,447
  • 13
  • 69
  • 88
1

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

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
  • 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 Sep 29 '08 at 20:05
  • 1
    Yeah, looking for something more complete. – Adam Haile Sep 29 '08 at 20:07
1

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
  • 3,120
  • 1
  • 34
  • 57