Category "pysftp"

How to get last modified time from pysftp

I am using pysftp to access files on SFTP. But I want to get the last modified date of these files and store it in mongo. This is to access the date again next

"'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