Interface | IFinishableConsumer |
A Consumer for producers that finish. |
Interface | IFTPShell |
An abstraction of the shell commands used by the FTP protocol for a given user account. |
Interface | IReadFile |
A file out of which bytes may be read. |
Interface | IWriteFile |
A file into which bytes may be written. |
Class | AnonUserDeniedError |
Raised when an anonymous user issues a command that will alter the filesystem |
Class | ASCIIConsumerWrapper |
Undocumented |
Class | AuthorizationError |
Raised when client authentication fails. |
Class | BadCmdSequenceError |
Raised when a client sends a series of commands in an illogical sequence. |
Class | BadResponse |
Undocumented |
Class | BaseFTPRealm |
Base class for simple FTP realms which provides an easy hook for specifying the home directory for each user. |
Class | CmdArgSyntaxError |
Raised when a command is called with wrong value or a wrong number of arguments. |
Class | CmdNotImplementedError |
Raised when an unimplemented command is given to the server. |
Class | CmdNotImplementedForArgError |
Raised when the handling of a parameter for a command is not implemented by the server. |
Class | CmdSyntaxError |
Raised when a command syntax is wrong. |
Class | CommandFailed |
Undocumented |
Class | ConnectionLost |
Undocumented |
Class | DTP |
No class docstring; 0/4 instance variable, 0/1 class variable, 2/15 methods documented |
Class | DTPFactory |
Client factory for data transfer process protocols. |
Class | FileConsumer |
A consumer for FTP input that writes data to a file. |
Class | FileExistsError |
Raised when attempted to override an existing resource. |
Class | FileNotFoundError |
Raised when trying to access a non existent file or directory. |
Class | FTP |
Protocol Interpreter for the File Transfer Protocol |
Class | FTPAnonymousShell |
An anonymous implementation of IFTPShell |
Class | FTPClient |
FTPClient is a client implementation of the FTP protocol which exposes FTP commands as methods which return Deferred s. |
Class | FTPClientBasic |
Foundations of an FTP client. |
Class | FTPCmdError |
Generic exception for FTP commands. |
Class | FTPCommand |
Undocumented |
Class | FTPDataPortFactory |
Factory for data connections that use the PORT command |
Class | FTPError |
Undocumented |
Class | FTPFactory |
A factory for producing ftp protocol instances |
Class | FTPFileListProtocol |
Parser for standard FTP file listings |
Class | FTPOverflowProtocol |
FTP mini-protocol for when there are too many connections. |
Class | FTPRealm |
|
Class | FTPShell |
An authenticated implementation of IFTPShell . |
Class | InvalidPath |
Internal exception used to signify an error during parsing a path. |
Class | IsADirectoryError |
Raised when DELE is called on a path that is a directory. |
Class | IsNotADirectoryError |
Raised when RMD is called on a path that isn't a directory. |
Class | PermissionDeniedError |
Raised when access is attempted to a resource to which access is not allowed. |
Class | PortConnectionError |
Undocumented |
Class | ProtocolWrapper |
Undocumented |
Class | SenderProtocol |
No class docstring; 0/2 instance variable, 2/8 methods documented |
Class | SystemFTPRealm |
SystemFTPRealm uses system user account information to decide what the home directory for a particular avatarId is. |
Class | UnexpectedData |
Undocumented |
Class | UnexpectedResponse |
Undocumented |
Function | debugDeferred |
Undocumented |
Function | decodeHostPort |
Decode an FTP response specifying a host and port. |
Function | encodeHostPort |
Undocumented |
Function | errnoToFailure |
Map OSError and IOError to standard FTP errors. |
Function | parsePWDResponse |
Returns the path from a response to a PWD command. |
Function | toSegments |
Normalize a path, as represented by a list of strings each representing one segment of the path. |
Constant | ANON_USER_DENIED |
Undocumented |
Constant | AUTH_FAILURE |
Undocumented |
Constant | BAD_CMD_SEQ |
Undocumented |
Constant | CANT_OPEN_DATA_CNX |
Undocumented |
Constant | CLOSING_DATA_CNX |
Undocumented |
Constant | CMD_NOT_IMPLMNTD |
Undocumented |
Constant | CMD_NOT_IMPLMNTD_FOR_PARAM |
Undocumented |
Constant | CMD_NOT_IMPLMNTD_SUPERFLUOUS |
Undocumented |
Constant | CMD_OK |
Undocumented |
Constant | CNX_CLOSED_TXFR_ABORTED |
Undocumented |
Constant | DATA_CNX_ALREADY_OPEN_START_XFR |
Undocumented |
Constant | DATA_CNX_OPEN_NO_XFR_IN_PROGRESS |
Undocumented |
Constant | DIR_STATUS |
Undocumented |
Constant | ENTERING_EPSV_MODE |
Undocumented |
Constant | ENTERING_PASV_MODE |
Undocumented |
Constant | ENTERING_PORT_MODE |
Undocumented |
Constant | EXCEEDED_STORAGE_ALLOC |
Undocumented |
Constant | FEAT_OK |
Undocumented |
Constant | FILE_EXISTS |
Undocumented |
Constant | FILE_NOT_FOUND |
Undocumented |
Constant | FILE_STATUS |
Undocumented |
Constant | FILE_STATUS_OK_OPEN_DATA_CNX |
Undocumented |
Constant | FILENAME_NOT_ALLOWED |
Undocumented |
Constant | GOODBYE_MSG |
Undocumented |
Constant | GUEST_LOGGED_IN_PROCEED |
Undocumented |
Constant | GUEST_NAME_OK_NEED_EMAIL |
Undocumented |
Constant | HELP_MSG |
Undocumented |
Constant | IS_A_DIR |
Undocumented |
Constant | IS_NOT_A_DIR |
Undocumented |
Constant | MKD_REPLY |
Undocumented |
Constant | NAME_SYS_TYPE |
Undocumented |
Constant | NEED_ACCT_FOR_LOGIN |
Undocumented |
Constant | NEED_ACCT_FOR_STOR |
Undocumented |
Constant | NOT_LOGGED_IN |
Undocumented |
Constant | OPTS_NOT_IMPLEMENTED |
Undocumented |
Constant | PAGE_TYPE_UNK |
Undocumented |
Constant | PERMISSION_DENIED |
Undocumented |
Constant | PWD_REPLY |
Undocumented |
Constant | REQ_ACTN_ABRTD_FILE_UNAVAIL |
Undocumented |
Constant | REQ_ACTN_ABRTD_INSUFF_STORAGE |
Undocumented |
Constant | REQ_ACTN_ABRTD_LOCAL_ERR |
Undocumented |
Constant | REQ_ACTN_NOT_TAKEN |
Undocumented |
Constant | REQ_FILE_ACTN_COMPLETED_OK |
Undocumented |
Constant | REQ_FILE_ACTN_PENDING_FURTHER_INFO |
Undocumented |
Constant | RESPONSE |
Undocumented |
Constant | RESTART_MARKER_REPLY |
Undocumented |
Constant | SERVICE_READY_IN_N_MINUTES |
Undocumented |
Constant | SVC_CLOSING_CTRL_CNX |
Undocumented |
Constant | SVC_NOT_AVAIL_CLOSING_CTRL_CNX |
Undocumented |
Constant | SVC_READY_FOR_NEW_USER |
Undocumented |
Constant | SYNTAX_ERR |
Undocumented |
Constant | SYNTAX_ERR_IN_ARGS |
Undocumented |
Constant | SYS_STATUS_OR_HELP_REPLY |
Undocumented |
Constant | TOO_MANY_CONNECTIONS |
Undocumented |
Constant | TXFR_COMPLETE_OK |
Undocumented |
Constant | TYPE_SET_OK |
Undocumented |
Constant | USR_LOGGED_IN_PROCEED |
Undocumented |
Constant | USR_NAME_OK_NEED_PASS |
Undocumented |
Constant | WELCOME_MSG |
Undocumented |
Variable | grp |
Undocumented |
Variable | pwd |
Undocumented |
Class | _FileReader |
Undocumented |
Class | _FileWriter |
Undocumented |
Class | _PassiveConnectionFactory |
Undocumented |
Function | _getgroups |
Return the primary and supplementary groups for the given UID. |
Function | _isGlobbingExpression |
Helper for checking if a FTPShell `segments` contains a wildcard Unix expression. |
Function | _testPermissions |
checks to see if uid has proper permissions to access path with mode |
Function | _unwrapFirstError |
Undocumented |
Variable | _months |
Undocumented |
Variable | _testTranslation |
Undocumented |
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 '/home/andrew'.
If I can't find the path, I return None
.
Undocumented
Value |
|
Helper for checking if a FTPShell `segments` contains a wildcard Unix expression.
Only filename globbing is supported. This means that wildcards can only be presents in the last element of `segments`.
Parameters | |
segments:list | List of path elements as used by the FTP server protocol. |
Returns | |
Boolean | True if `segments` contains a globbing expression. |