Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module ftp :: Class FTPFileListProtocol |
|
BaseProtocol
--+ |Protocol
--+ |LineReceiver
--+ | FTPFileListProtocol
Parser for standard FTP file listings
This is the evil required to match:-rw-r--r-- 1 root other 531 Jan 29 03:26 README
If you need different evil for a wacky FTP server, you can override this.
It populates the instance attribute self.files, which is a list containing dicts with the following keys (examples from the above line):Method Summary | |
---|---|
__init__(self)
| |
(Deprecated) (inherited from Protocol )
| |
Called when the connection is shut down. (inherited from Protocol )
| |
Called when a connection is made. (inherited from BaseProtocol )
| |
Protocol.dataReceived. (inherited from LineReceiver )
| |
Called when the maximum line length has been reached. (inherited from LineReceiver )
| |
Override this for when each line is received. | |
Make a connection to a transport and a server. (inherited from BaseProtocol )
| |
Override this for when raw data is received. (inherited from LineReceiver )
| |
Sends a line to the other end of the connection. (inherited from LineReceiver )
| |
Sets the line-mode of this receiver. (inherited from LineReceiver )
| |
Sets the raw mode of this receiver. (inherited from LineReceiver )
|
Instance Variable Summary | |
---|---|
files
- list of dicts describing the files in this listing |
Class Variable Summary | |
---|---|
string |
delimiter
|
SRE_Pattern |
fileLinePattern
|
Method Details |
---|
lineReceived(self, line)Override this for when each line is received.
|
Instance Variable Details |
---|
fileslist of dicts describing the files in this listing |
Class Variable Details |
---|
delimiter
|
fileLinePattern
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sat Feb 15 21:19:12 2003 | http://epydoc.sf.net |