Package grizzled :: Package net :: Package ftp :: Module parse :: Class FTPListData
[hide private]
[frames] | no frames]

Class FTPListData

source code

object --+
         |
        FTPListData

The FTPListDataParser class's parse_line() method returns an instance of this class, capturing the parsed data.
Instance Methods [hide private]
 
__init__(self, raw_line)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
str id
A unique identifier for the file.
ID_TYPE id_type
How to interpret the identifier.
long mtime
The file's modification time, as a value that can be passed to time.localtime().
MTIME_TYPE mtime_type
How to interpret the modification time.
str name
The name of the file, if parsable
long size
The file's size, in bytes
bool try_cwd
True if the entry might be a directory (i.e., the caller might want to try an FTP CWD command), False if it cannot possibly be a directory.
bool try_retr
True if the entry might be a retrievable file (i.e., the caller might want to try an FTP RETR command), False if it cannot possibly be a file.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, raw_line)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Instance Variable Details [hide private]

id

A unique identifier for the file. The unique identifier is unique on the server. On a Unix system, this identifier might be the device number and the file's inode; on other system's, it might be something else. It's also possible for this field to be None.
Type:
str

id_type

How to interpret the identifier. See ID_TYPE.
Type:
ID_TYPE

mtime_type

How to interpret the modification time. See MTIME_TYPE.
Type:
MTIME_TYPE