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)
| 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 | """ |
no test coverage detected