Re: PutFileToDirectory Gives Wrong Error Message
When I try:
I get:
So it behaves as expected. Please double check the paths you are passing to
$session.PutFileToDirectory("C:\existing\test.txt", "/non/existing")
I get:
Exception calling "PutFileToDirectory" with "2" argument(s): "Cannot create remote file '/non/existing/test.txt'.
No such file or directory.
Error code: 2
Error message from server: No such file"
So it behaves as expected. Please double check the paths you are passing to
Session.PutFileToDirectory
.