parameters: (self, fromname, toname)
return_statement: return self.voidcmd('RNTO ' + toname)
docstring: Rename a file.
docstring_summary: Rename a file.
docstring_tokens: Rename a file .
function: def rename(self, fromname, toname):
          '''Rename a file.'''
          resp = self.sendcmd('RNFR ' + fromname)
          if resp[0] != '3':
              raise error_reply, resp
          return self.voidcmd('RNTO ' + toname)
function_tokens: def rename ( self , fromname , toname ) : resp = self . sendcmd ( 'RNFR ' + fromname ) if resp [ 0 ] != '3' : raise error_reply , resp return self . voidcmd ( 'RNTO ' + toname )