Category "sftp"

Converting FTP "ls -ltr" to SFTP

I was migrating an FTP functionality to SFTP. In shell script that does FTP, I saw some lines and I can not convert them to SFTP. I searched but couldn't get a

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