Home | Trees | Index | Help |
|
---|
Package twisted :: Package protocols :: Module ftp |
|
An FTP protocol implementation
Maintainer: Jonathan D. SimmsClasses | |
---|---|
DTP |
The Data Transfer Protocol for this FTP-PI instance all dtp_* methods return a deferred |
DTPFactory |
|
DTPFileSender |
|
FTP |
Protocol Interpreter for the File Transfer Protocol |
FTPAnonymousShell |
Only works on POSIX platforms at the moment. |
FTPClient |
A Twisted FTP Client |
FTPCommand |
|
FTPDataPortFactory |
Factory for data connections that use the PORT command |
FTPFactory |
A factory for producing ftp protocol instances |
FTPFileListProtocol |
Parser for standard FTP file listings |
FTPRealm |
|
IDTPFactory |
An interface for protocol.Factories |
IDTPParent |
An interface for protocols that wish to use a DTP sub-protocol and factory. |
IFTPShell |
An abstraction of the shell commands used by the FTP protocol for a given user account |
ProtocolWrapper |
|
SenderProtocol |
Exceptions | |
---|---|
AnonUserDeniedError |
raised when an anonymous user issues a command that will alter the filesystem |
AuthorizationError |
raised when client authentication fails |
BadCmdSequenceError |
raised when a client sends a series of commands in an illogical sequence |
BadResponse |
|
BogusClientError |
thrown when a client other than the one we opened this DTP connection for attempts to connect, or a client attempts to get us to connect to an ip that differs from the one where the request came from |
ClientDisconnectError |
|
CmdArgSyntaxError |
|
CmdNotImplementedError |
raised when an unimplemented command is given to the server |
CmdNotImplementedForArgError |
|
CmdSyntaxError |
|
CommandFailed |
|
ConnectionLost |
|
DTPError |
|
FileNotFoundError |
|
FTPError |
|
FTPTimeoutError |
|
IsNotADirectoryError |
raised when RMD is called on a path that isn't a directory |
OperationFailedError |
raised when a command like rmd or mkdir fails for a reason other than permissions errors |
PathBelowTLDError |
|
PermissionDeniedError |
|
TLDNotSetInRealmError |
raised if the tld (root) directory for the FTPRealm was not set before requestAvatar was called |
UnexpectedResponse |
Function Summary | |
---|---|
_callWithDefault(default,
_f,
*_a,
**_kw)
| |
returns a file object's name attr if it has one, otherwise it returns "<string>" | |
returns a list of all gid's that are a member of group with id | |
checks to see if uid has proper permissions to access path with mode | |
cleanPath(path)
| |
debugDeferred(self,
*_)
| |
Decode an FTP response specifying a host and port. | |
Returns the path from a response to a PWD command. |
Function Details |
---|
_getFPName(fp)returns a file object's name attr if it has one, otherwise it returns "<string>" |
_memberGIDs(gid)returns a list of all gid's that are a member of group with id |
_testPermissions(uid, gid, spath, mode='r')checks to see if uid has proper permissions to access path with mode
|
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 |
---|
BAD_CMD_SEQ
|
CANT_OPEN_DATA_CNX
|
CLOSING_DATA_CNX
|
CMD_NOT_IMPLMNTD
|
CMD_NOT_IMPLMNTD_FOR_PARAM
|
CMD_NOT_IMPLMNTD_SUPERFLUOUS
|
CMD_OK
|
CNX_CLOSED_TXFR_ABORTED
|
DATA_CNX_ALREADY_OPEN_START_XFR
|
DATA_CNX_OPEN_NO_XFR_IN_PROGRESS
|
DIR_STATUS
|
ENDLN
|
ENTERING_EPSV_MODE
|
ENTERING_PASV_MODE
|
ENTERING_PORT_MODE
|
EXCEEDED_STORAGE_ALLOC
|
FILE_STATUS
|
FILE_STATUS_OK_OPEN_DATA_CNX
|
FILENAME_NOT_ALLOWED
|
GOODBYE_MSG
|
HELP_MSG
|
NAME_SYS_TYPE
|
NEED_ACCT_FOR_LOGIN
|
NEED_ACCT_FOR_STOR
|
PAGE_TYPE_UNK
|
PASV
|
PORT
|
PWD_REPLY
|
REQ_ACTN_ABRTD_FILE_UNAVAIL
|
REQ_ACTN_ABRTD_INSUFF_STORAGE
|
REQ_ACTN_ABRTD_LOCAL_ERR
|
REQ_ACTN_NOT_TAKEN
|
REQ_FILE_ACTN_COMPLETED_OK
|
REQ_FILE_ACTN_PENDING_FURTHER_INFO
|
RESTART_MARKER_REPLY
|
SERVICE_READY_IN_N_MINUTES
|
SVC_CLOSING_CTRL_CNX
|
SVC_NOT_AVAIL_CLOSING_CTRL_CNX
|
SVC_READY_FOR_NEW_USER
|
SYNTAX_ERR
|
SYNTAX_ERR_IN_ARGS
|
SYS_STATUS_OR_HELP_REPLY
|
TOO_MANY_CONNECTIONS
|
TXFR_COMPLETE_OK
|
TYPE_SET_OK
|
WELCOME_MSG
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:07:44 2004 | http://epydoc.sf.net |