Browse Source

Use LastWriteTimeUtc and LastAccessTimeUtc of the local directory that corresponds with the remote path.
Fixes issue #129.

drieseng 9 năm trước cách đây
mục cha
commit
84d1291519
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Renci.SshNet/ScpClient.NET.cs

+ 1 - 1
src/Renci.SshNet/ScpClient.NET.cs

@@ -159,7 +159,7 @@ namespace Renci.SshNet
             var directories = directoryInfo.GetDirectories();
             foreach (var directory in directories)
             {
-                InternalSetTimestamp(channel, input, directoryInfo.LastWriteTimeUtc, directory.LastAccessTimeUtc);
+                InternalSetTimestamp(channel, input, directory.LastWriteTimeUtc, directory.LastAccessTimeUtc);
                 SendData(channel, string.Format("D0755 0 {0}\n", directory.Name));
                 CheckReturnCode(input);