Skip to content

System.NotSupportedException in InternalDownload of ScpClient #177

@DaveKP

Description

@DaveKP

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @drieseng@DaveKP

        Issue actions

          System.NotSupportedException in InternalDownload of ScpClient · Issue #177 · sshnet/SSH.NET