twisted.protocols.ftp.FTPClient.rename(self, pathFrom, pathTo)
method documentationtwisted.protocols.ftp.FTPClient
View Source
Rename a file.
This method issues the RNFR/RNTO command sequence to rename pathFrom
to pathTo
.
Parameters | pathFrom: the absolute path to the file to be renamed | |
pathTo: the absolute path to rename the file to. | ||
Returns | A Deferred which fires when the rename operation has succeeded or failed. If it succeeds, the Deferred is called back with a two-tuple of lists. The first list contains the responses to the RNFR command. The second list contains the responses to the RNTO command. If either RNFR or RNTO fails, the Deferred is errbacked with CommandFailed or BadResponse . (type: Deferred ) | |
Present Since | 8.2 |
Function | ebFrom | Undocumented |