MCPcopy Create free account
hub / github.com/twisted/twisted / queueCommand

Method queueCommand

src/twisted/protocols/ftp.py:2723–2739  ·  view source on GitHub ↗

Add an FTPCommand object to the queue. If it's the only thing in the queue, and we are connected and we aren't waiting for a response of an earlier command, the command will be sent immediately. @param ftpCommand: an L{FTPCommand}

(self, ftpCommand)

Source from the content-addressed store, hash-verified

2721 self.sendLine(ftpCommand.text)
2722
2723 def queueCommand(self, ftpCommand):
2724 """
2725 Add an FTPCommand object to the queue.
2726
2727 If it's the only thing in the queue, and we are connected and we aren't
2728 waiting for a response of an earlier command, the command will be sent
2729 immediately.
2730
2731 @param ftpCommand: an L{FTPCommand}
2732 """
2733 self.actionQueue.append(ftpCommand)
2734 if (
2735 len(self.actionQueue) == 1
2736 and self.transport is not None
2737 and self.nextDeferred is None
2738 ):
2739 self.sendNextCommand()
2740
2741 def queueStringCommand(self, command, public=1):
2742 """

Callers 3

queueStringCommandMethod · 0.95
queueLoginMethod · 0.95
_openDataConnectionMethod · 0.45

Calls 2

sendNextCommandMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected