[paramiko] Patch for SFTPClient to include "longname" in the file attributes
Wesley Augur
wes at oxona.com
Wed May 9 12:36:43 PDT 2007
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.
Thanks for paramiko, it's incredibly useful!
--
Wesley Augur
wes at oxona.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paramiko-r439+sftp_longname.patch
Type: text/x-patch
Size: 1402 bytes
Desc: not available
Url : http://mail.lag.net/pipermail/paramiko/attachments/20070509/59f5fd67/attachment.bin
More information about the paramiko
mailing list