diff options
author | Robey Pointer <robey@lag.net> | 2007-05-20 15:56:22 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2007-05-20 15:56:22 -0700 |
commit | 3229cd0f94c75504e66e40cce088a3ed4c6edfec (patch) | |
tree | bf98125ac5240b2558a448d82d79c1fc374b71b9 /paramiko/sftp_attr.py | |
parent | 920b1723606f5cf3cf16155dedeaa9c1b633af82 (diff) | |
download | paramiko-3229cd0f94c75504e66e40cce088a3ed4c6edfec.tar.gz |
[project @ robey@lag.net-20070520225622-ozs9cguu8ipaxt85]
patch from wesley augur: expose the 'longname' field from listdir_attr().
Diffstat (limited to 'paramiko/sftp_attr.py')
-rw-r--r-- | paramiko/sftp_attr.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py index adf46d2f..9c928623 100644 --- a/paramiko/sftp_attr.py +++ b/paramiko/sftp_attr.py @@ -90,11 +90,13 @@ class SFTPAttributes (object): ### internals... - def _from_msg(cls, msg, filename=None): + def _from_msg(cls, msg, filename=None, longname=None): attr = cls() attr._unpack(msg) if filename is not None: attr.filename = filename + if longname is not None: + attr.longname = longname return attr _from_msg = classmethod(_from_msg) |