From 39b3df8453d3f50a798495cd0505de8c774e5052 Mon Sep 17 00:00:00 2001 From: diehardvn_cp Date: Thu, 29 Nov 2012 22:45:27 +0000 Subject: [PATCH] 1. Compare the specified local directory and destination directory. 2. Upload the difference from the local directory to destination directory. --- .../Renci.SshNet.NET35.csproj | 7 + .../Renci.SshNet.Silverlight.csproj | 7 + .../Properties/Resources.Designer.cs | 4 +- .../Properties/Resources.resx | 6 +- .../Renci.SshNet.Tests.NET35.csproj | 7 + .../Properties/Resources.Designer.cs | 6 +- .../Properties/Resources.resx | 4 +- .../Renci.SshNet.Tests.csproj | 7 +- .../SftpClientTests/ListDirectoryTest.cs | 2 +- .../SynchronizeDirectoriesTest.cs | 83 +++++++++++ .../Renci.SshNet.WindowsPhone.csproj | 6 +- Renci.SshClient/Renci.SshNet.sln | 48 +++---- .../Renci.SshNet/Renci.SshNet.csproj | 5 + Renci.SshClient/Renci.SshNet/Session.cs | 7 +- .../SftpSynchronizeDirectoriesAsyncResult.cs | 37 +++++ Renci.SshClient/Renci.SshNet/SftpClient.cs | 135 ++++++++++++++++++ 16 files changed, 333 insertions(+), 38 deletions(-) create mode 100644 Renci.SshClient/Renci.SshNet.Tests/SftpClientTests/SynchronizeDirectoriesTest.cs create mode 100644 Renci.SshClient/Renci.SshNet/Sftp/SftpSynchronizeDirectoriesAsyncResult.cs diff --git a/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj b/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj index 76e5502d..16ccc98c 100644 --- a/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj +++ b/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj @@ -12,6 +12,10 @@ Renci.SshNet v3.5 512 + SAK + SAK + SAK + SAK true @@ -744,6 +748,9 @@ Sftp\SftpSession.cs + + Sftp\SftpSynchronizeDirectoriesAsyncResult.cs + Sftp\SftpUploadAsyncResult.cs diff --git a/Renci.SshClient/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj b/Renci.SshClient/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj index 2bdac208..59fe0bc8 100644 --- a/Renci.SshClient/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj +++ b/Renci.SshClient/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj @@ -17,6 +17,10 @@ false true true + SAK + SAK + SAK + SAK