SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

System.NotSupportedException in InternalDownload of ScpClient

Open DaveKP opened this issue 9 years ago • 0 comments

I'm attempting to download a directory from a UNIX system onto Windows. Some of the files contain ":" in timestamps in the filename.

This appears to be causing problems with the FileInfo creation in InternalDownload - Windows doesn't allow colons in filenames.

Unless I'm missing something there is no option to translate invalid Windows characters from Unix?

Perhaps ScpClient.Download(string directoryName, DirectoryInfo directoryInfo) could have an overload for UnixToWindows conversion where colons are replaced by hyphens?

DaveKP avatar Feb 21 '17 11:02 DaveKP