To follow up -- it looks like the STATUS fields sent by Paramiko following the directory list results have a non-EOF status (perhaps OK?), while lftp expects only EOF.

Since this works correctly with other SFTP clients (including the official one from the OpenSSH project), I'm inclined to suspect that it would be correct behavior for lftp to accept non-EOF status responses as indicating completion of a directory listing... but if anyone has a pointer to the official SFTP spec, I'd be happy to dive in to find the Right Thing more definitively.

On the other hand, since this *is* a significant difference in behavior between paramiko and OpenSSH's sftp server, I've reported this discrepancy to the paramiko list as well.

Reply via email to