Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module ftp |
|
File Transfer Protocol support for Twisted Python. Stability: semi-stable Maintainer: U{Andrew Bennetts<mailto:spiv@twistedmatrix.com>} Future Plans: The server will be re-written. The goal for the server is that it should be secure, high-performance, and overloaded with stupid features. The client is probably fairly final, but should share more code with the server, and some details could still change. Server TODO: * Authorization User / Password is stored in a dict (factory.userdict) in plaintext Use cred Separate USER / PASS from mainloop * Ascii-download Currently binary only. Ignores TYPE * Missing commands HELP, REST, STAT, ... * Print out directory-specific messages As in READMEs etc * Testing Test at every ftp-program available and on any platform. Automated tests * Security PORT needs to reply correctly if it fails The paths are done by os.path; use the "undocumented" module posixpath * Etc Documentation, Logging, Procedural content, Localization, Telnet PI, stop LIST from blocking... Highest priority: Resources. DOCS: * Base information: RFC0959 * Security: RFC2577
Classes | |
---|---|
DTP |
A Client/Server-independent implementation of the DTP-protocol. |
DTPFactory |
The DTP-Factory. |
FTP |
An FTP server. |
FTPClient |
A Twisted FTP Client |
FTPCommand |
|
FTPDataPortFactory |
Factory for data connections that use the PORT command |
FTPFactory |
|
FTPFileListProtocol |
Parser for standard FTP file listings |
ProtocolWrapper |
|
SenderProtocol |
|
SendFileTransfer |
Producer, server to client |
Exceptions | |
---|---|
BadResponse |
|
CommandFailed |
|
ConnectionLost |
|
FTPError |
|
UnexpectedResponse |
Function Summary | |
---|---|
Decode an FTP response specifying a host and port. | |
Returns the path from a response to a PWD command. |
Variable Summary | |
---|---|
int |
FAILURE
|
dict |
ftp_reply
|
_Feature |
nested_scopes
|
SelectReactor |
reactor
|
Function Details |
---|
decodeHostPort(line)Decode an FTP response specifying a host and port.
|
parsePWDResponse(response)Returns the path from a response to a PWD command. Responses typically look like:257 "/home/andrew" is current directory. For this example, I will return None .
|
Variable Details |
---|
FAILURE
|
nested_scopes
|
reactor
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Fri Jun 27 03:48:26 2003 | http://epydoc.sf.net |