Robin Becker <ro...@reportlab.com> writes:
> On 12/06/2019 05:59, dieter wrote:
>> Robin Becker <ro...@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``?

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to