mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-28 05:56:55 +08:00
Fix SCP hanging when downloading single file into directory
This commit is contained in:
@@ -226,11 +226,9 @@ namespace Renci.SshNet
|
||||
|
||||
currentDirectoryFullName = new DirectoryInfo(currentDirectoryFullName).Parent.FullName;
|
||||
|
||||
//if (currentDirectoryFullName == startDirectoryFullName)
|
||||
if (directoryCounter == 0)
|
||||
break;
|
||||
else
|
||||
continue;
|
||||
continue;
|
||||
}
|
||||
|
||||
var match = _directoryInfoRe.Match(message);
|
||||
@@ -284,9 +282,8 @@ namespace Renci.SshNet
|
||||
fileInfo.LastAccessTime = accessedTime;
|
||||
fileInfo.LastWriteTime = modifiedTime;
|
||||
|
||||
if (fileSystemInfo is FileInfo)
|
||||
if (directoryCounter == 0)
|
||||
break;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user