Category "pysftp"

"'Connection' object has no attribute '_sftp_live'" when pysftp connection fails

I'd like to catch nicely the error when "No hostkey for host *** is found" and give an appropriate message to the end user. I tried this: import pysftp, paramik

How to get file location path from server but not copy it?

I have my NAS server located and i am able to get/upload files on it. Now i have suituation where i need to read .png files location from server and pass it on

Specify file pattern in pysftp get

We can write a simple get like this: import pysftp hostname = "somehost" user = "bob" password = "123456" filename = 'somefile.txt' with pysftp.Conn