Home | Trees | Indices | Help |
---|
|
object --+ | SFTPAttributes
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 `os.stat` as closely as possible, so it may have the following fields, with the same meanings as those returned by an `os.stat` object:
Because SFTP allows flags to have other arbitrary named attributes, these are stored in a dict named ``attr``. Occasionally, the filename is also stored, in ``filename``.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Methods | |||
|
Class Variables | |
FLAG_SIZE = 1
|
|
FLAG_UIDGID = 2
|
|
FLAG_PERMISSIONS = 4
|
|
FLAG_AMTIME = 8
|
|
FLAG_EXTENDED = 2147483648
|
Properties | |
Inherited from |
Method Details |
Create a new (empty) SFTPAttributes object. All fields will be empty.
|
Create an `.SFTPAttributes` object from an existing ``stat`` object (an object returned by `os.stat`). :param object obj: an object returned by `os.stat` (or equivalent). :param str filename: the filename associated with this file. :return: new `.SFTPAttributes` object with the same attribute fields. |
repr(x)
|
create a unix-style long description of the file (like ls -l)
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Apr 13 14:18:21 2015 | http://epydoc.sourceforge.net |