Ñò
pØcJc @ sF d d k Z d d k Z d d k Td d k Td e f d „ ƒ YZ d S( iÿÿÿÿN( t *t SFTPAttributesc B s e Z d Z d Z d Z d Z d Z d Z d „ Z d d „ Z
e e
ƒ Z
d „ Z d d d „ Z
e e
ƒ Z
d
„ Z d „ Z d „ Z e d
„ Z e e ƒ Z d „ Z RS( sO
Representation of the attributes of a file (or proxied file) for SFTP in
client or server mode. It attemps to mirror the object returned by
C{os.stat} as closely as possible, so it may have the following fields,
with the same meanings as those returned by an C{os.stat} object:
- st_size
- st_uid
- st_gid
- st_mode
- st_atime
- st_mtime
Because SFTP allows flags to have other arbitrary named attributes, these
are stored in a dict named C{attr}. Occasionally, the filename is also
stored, in C{filename}.
i i i i l c C sL d | _ d | _ d | _ d | _ d | _ d | _ d | _ h | _ d S( sX
Create a new (empty) SFTPAttributes object. All fields will be empty.
i N( t _flagst Nonet st_sizet st_uidt st_gidt st_modet st_atimet st_mtimet attr( t self( ( s6 /usr/lib/python2.6/site-packages/paramiko/sftp_attr.pyt __init__1 s c C so | ƒ } | i | _ | i | _ | i | _ | i | _ | i | _ | i | _ | d j o
| | _ n | S( s«
Create an SFTPAttributes object from an existing C{stat} object (an
object returned by C{os.stat}).
@param obj: an object returned by C{os.stat} (or equivalent).
@type obj: object
@param filename: the filename associated with this file.
@type filename: str
@return: new L{SFTPAttributes} object with the same attribute fields.
@rtype: L{SFTPAttributes}
N( R R R R R R R t filename( t clst objR
R
( ( s6 /usr/lib/python2.6/site-packages/paramiko/sftp_attr.pyt from_stat> s
c C s d | i ƒ S( Ns