From 84d12915198e28645c16385f6d1d6895318e5bfd Mon Sep 17 00:00:00 2001 From: drieseng Date: Mon, 12 Dec 2016 22:12:25 +0100 Subject: [PATCH] Use LastWriteTimeUtc and LastAccessTimeUtc of the local directory that corresponds with the remote path. Fixes issue #129. --- src/Renci.SshNet/ScpClient.NET.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Renci.SshNet/ScpClient.NET.cs b/src/Renci.SshNet/ScpClient.NET.cs index df784660..c3a3ce10 100644 --- a/src/Renci.SshNet/ScpClient.NET.cs +++ b/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);