git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pysftp / paramiko problem


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``?