Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScpClient: Upload(Stream, String) does not throw exception when parent directory does not exist #289

Closed
drieseng opened this issue Aug 27, 2017 · 0 comments
Assignees
Labels

Comments

@drieseng
Copy link
Member

drieseng commented Aug 27, 2017

When you specify a (remote) file path to Upload(Stream, String) for which the last part of the directory directory (parent path) does not exist, then we currently do not throw an exception.

Instead the file is created with as path the directory of specified path.

For example:
If the directory /home/sshnet exists, but directory /home/sshnet/logs does not exist, then using the Upload(Stream, String) method to upload the content to the /home/sshnet/logs/file path will actually upload the content to the file path /home/sshnet/logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant