twisted.conch.scripts.cftp.StdioClient(basic.LineReceiver)
class documentationtwisted.conch.scripts.cftp
View Source
(View In Hierarchy)
Method | __init__ | Undocumented |
Method | connectionMade | Called when a connection is made. |
Method | lineReceived | Override this for when each line is received. |
Method | cmd_CD | Undocumented |
Method | cmd_CHGRP | Undocumented |
Method | cmd_CHMOD | Undocumented |
Method | cmd_CHOWN | Undocumented |
Method | cmd_GET | Undocumented |
Method | cmd_PUT | Do an upload request for a single local file or a globing expression. |
Method | cmd_LCD | Undocumented |
Method | cmd_LN | Undocumented |
Method | cmd_LS | Undocumented |
Method | cmd_MKDIR | Undocumented |
Method | cmd_RMDIR | Undocumented |
Method | cmd_LMKDIR | Undocumented |
Method | cmd_RM | Undocumented |
Method | cmd_LLS | Undocumented |
Method | cmd_RENAME | Undocumented |
Method | cmd_EXIT | Undocumented |
Method | cmd_VERSION | Undocumented |
Method | cmd_HELP | Undocumented |
Method | cmd_PWD | Undocumented |
Method | cmd_LPWD | Undocumented |
Method | cmd_PROGRESS | Undocumented |
Method | cmd_EXEC | Run rest using the user's shell (or /bin/sh if they do not
have one). |
Method | _cbSetCurDir | Undocumented |
Method | _writeToTransport | Undocumented |
Method | _dispatchCommand | Undocumented |
Method | _printFailure | Undocumented |
Method | _newLine | Undocumented |
Method | _cbCommand | Undocumented |
Method | _ebCommand | Undocumented |
Method | _cbCd | Undocumented |
Method | _cbCurDir | Undocumented |
Method | _cbSetUsrGrp | Undocumented |
Method | _cbGetMultiple | Undocumented |
Method | _cbGetMultipleNext | Undocumented |
Method | _ebCloseLf | Undocumented |
Method | _cbGetOpenFile | Undocumented |
Method | _cbGetFileSize | Undocumented |
Method | _getNextChunk | Undocumented |
Method | _cbGetRead | Undocumented |
Method | _cbGetDone | Undocumented |
Method | _putSingleFile | Perform an upload for a single file. |
Method | _putMultipleFiles | Perform an upload for a list of local files. |
Method | _cbPutMultipleNext | Perform an upload for the next file in the list of local files. |
Method | _putRemoteFile | Do an upload request. |
Method | _cbPutOpenFile | Undocumented |
Method | _cbPutWrite | Undocumented |
Method | _cbPutDone | Undocumented |
Method | _cbDisplayFiles | Undocumented |
Method | _remoteGlob | Undocumented |
Method | _cbOpenList | Undocumented |
Method | _ebNotADirectory | Undocumented |
Method | _cbReadFile | Undocumented |
Method | _abbrevSize | Undocumented |
Method | _abbrevTime | Undocumented |
Method | _printProgressBar | No summary |
Method | _getFilename | Parse line received as command line input and return first filename together with the remaining line. |
Inherited from LineReceiver:
Class Variable | delimiter | The line-ending delimiter to use. By default this is b'\r\n' . |
Class Variable | MAX_LENGTH | The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped). Default is 16384. |
Method | clearLineBuffer | Clear buffered data. |
Method | dataReceived | Protocol.dataReceived. Translates bytes into lines, and calls lineReceived (or rawDataReceived, depending on mode.) |
Method | setLineMode | Sets the line-mode of this receiver. |
Method | setRawMode | Sets the raw mode of this receiver. Further data received will be sent to rawDataReceived rather than lineReceived. |
Method | rawDataReceived | Override this for when raw data is received. |
Method | sendLine | Sends a line to the other end of the connection. |
Method | lineLengthExceeded | Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way. |
Inherited from Protocol (via LineReceiver):
Method | logPrefix | Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Method | connectionLost | Called when the connection is shut down. |
Inherited from BaseProtocol (via LineReceiver, Protocol):
Method | makeConnection | Make a connection to a transport and a server. |
Inherited from _PauseableMixin (via LineReceiver):
Method | pauseProducing | Undocumented |
Method | resumeProducing | Undocumented |
Method | stopProducing | Undocumented |
Called when a connection is made.
This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
Override this for when each line is received.
Parameters | line | The line which was received with the delimiter removed. (type: bytes ) |
Do an upload request for a single local file or a globing expression.
Parameters | rest | Requested command line for the PUT command. (type: str ) |
Returns | A deferred which fires with None
when transfer is done. (type: defer.Deferred ) |
Perform an upload for the next file in the list of local files.
Parameters | previousResult | Result form previous file form the list. (type: str ) |
files | List of local files. (type: list of str ) | |
remotePath | Remote path for the request relative to current working directory. (type: str ) | |
single | A flag which signals if this is a transfer for a single file in which case
we use the exact remote path (type: bool ) | |
Returns | A deferred which fires when transfer is done. |
Do an upload request.
Parameters | localStream | Local stream from where data is read. (type: File like object.) |
remotePath | Remote path for the request relative to current working directory. (type: str ) | |
Returns | A deferred which fires when transfer is done. |
Run rest
using the user's shell (or /bin/sh if they do not
have one).
Update a console progress bar on this StdioClient
's
transport, based on the difference between the start time of the operation
and the current time according to the reactor, and appropriate to the size
of the console window.
Parameters | f | a wrapper around the file which is being written or read (type: FileWrapper ) |
startTime | The time at which the operation being tracked began. (type: float ) |
Parse line received as command line input and return first filename together with the remaining line.
Parameters | line | Arguments received from command line input. (type: str ) |
Returns | Tupple with filename and rest. Return empty values when no path was not
found. (type: tupple ) |