MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / rename

Method rename

tools/python-3.11.9-amd64/Lib/ftplib.py:599–604  ·  view source on GitHub ↗

Rename a file.

(self, fromname, toname)

Source from the content-addressed store, hash-verified

597 yield (name, entry)
598
599 def rename(self, fromname, toname):
600 '''Rename a file.'''
601 resp = self.sendcmd('RNFR ' + fromname)
602 if resp[0] != '3':
603 raise error_reply(resp)
604 return self.voidcmd('RNTO ' + toname)
605
606 def delete(self, filename):
607 '''Delete a file.'''

Callers 15

moveFunction · 0.45
_readlineMethod · 0.45
addMethod · 0.45
__setitem__Method · 0.45
flushMethod · 0.45
packMethod · 0.45
_lock_fileFunction · 0.45
rotateMethod · 0.45
doRolloverMethod · 0.45
write_fileMethod · 0.45
_commitMethod · 0.45
SetTextMethod · 0.45

Calls 3

sendcmdMethod · 0.95
voidcmdMethod · 0.95
error_replyClass · 0.85

Tested by

no test coverage detected