Skip to content

Commit 84d1291

Browse files
committed
Use LastWriteTimeUtc and LastAccessTimeUtc of the local directory that corresponds with the remote path.
Fixes issue #129.
1 parent e83486c commit 84d1291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renci.SshNet/ScpClient.NET.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private void InternalUpload(IChannelSession channel, Stream input, DirectoryInfo
159159
var directories = directoryInfo.GetDirectories();
160160
foreach (var directory in directories)
161161
{
162-
InternalSetTimestamp(channel, input, directoryInfo.LastWriteTimeUtc, directory.LastAccessTimeUtc);
162+
InternalSetTimestamp(channel, input, directory.LastWriteTimeUtc, directory.LastAccessTimeUtc);
163163
SendData(channel, string.Format("D0755 0 {0}\n", directory.Name));
164164
CheckReturnCode(input);
165165

0 commit comments

Comments
 (0)