Skip to content

ScpClient.Upload(DirectoryInfo, string) applies timestamp of parent directory #129

Closed
@drieseng

Description

@drieseng

The ScpClient.Upload(DirectoryInfo, string) overload wrongly applies the LastWriteTimeUtc and LastAccessTimeUtc of the local parent of a given directory to the corresponding remote directory.

For example:

Suppose the following directory structure exists locally:

c:\
    sshnet\
        test\
            sub\

When you copy the content of the c:\sshnet directory to remote path /home/sshnet, then the last write and last access time of the c:\sshnet directory will be applied to /home/sshnet/test.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions