pysftp / paramiko problem

dieter dieter at handshake.de
Thu Jun 13 00:56:55 EDT 2019


Robin Becker <robin at reportlab.com> writes:
> On 12/06/2019 05:59, dieter wrote:
>> Robin Becker <robin at reportlab.com> writes:
>>> I am trying to convert older code that uses ftplib as the endpoint has switched to sftp only.
> ...
> Well with real sftp I can cd to that path so if it is a symlink it goes somewhere.
>
> With pysftp I am unable to chdir or cd into it. With a bit of
> difficulty I can use subprocess + sshpass + sftp to do the required
> transfer.

Maybe, the problem is the "u" prefix.
Can you try your script with Python 3 or encode the unicode
into a native ``str``?




More information about the Python-list mailing list