rename_file Method
Change the name of RemoteFile to NewName .
Syntax
def rename_file(new_name: str) -> None: ...
Remarks
This property is used to change the name of a remote file, specified by remote_file to NewName. remote_file and NewName are either absolute paths on the server, or a path relative to remote_path. If there is no FTP session in place, one is automatically created by first calling the logon method.