[paramiko] Patch for SFTPClient to include "longname" in the file attributes

Robey Pointer robey at lag.net
Sun May 20 15:57:43 PDT 2007


On 9 May 2007, at 12:36, Wesley Augur wrote:

> I'm using paramiko as an SFTP client and am trying to access the
> owning user/group names (not IDs) for files. From what I can tell of
> the SFTP protocol v3, only the uid/gid is available in the file
> attributes, but according to
> http://tools.ietf.org/html/draft-ietf-secsh-filexfer-02#section-7 the
> user/group names are suggested to be included in the SSH_FXP_NAME
> longname field.
>
> SFTPClient.listdir_attr() currently ignores the longname field, would
> it be possible to have the field added to the SFTPAttributes? I
> attached a trivial patch which stores the longname field in the file
> attributes.

Sounds fine to me -- applied!

robey




More information about the paramiko mailing list