Closed rahbari closed 5 years ago
let me debug the issue. Can you please share the code snippet in meanwhile, so that i can see how you are using this function
I used
var sftp = await ssh.sftp();
instead of
var sftp = new SSH2Promise.SFTP(ssh);
await ssh.sftp() in docs leads to confusion.
thank for awesome work btw.
Below is sample code, how should we use it.
var ssh = new SSH2Promise(sshconfig);
var sftp = new SSH2Promise.SFTP(ssh);
await sftp.fastPut('C:\\test\\test1\\test2.log', "/home/ubuntu/test2.txt");
things should be working as expected, please let me know, if you are still facing error.
Yes, i agree, in documentation i have tried to show, how to retreive raw sftp session, which lead to confusion. I will try to update the documentation.
Thanks for your feedback
I got it working, thank you so much.
I get this when usign fastPut: