MCPcopy
hub / github.com/RUB-NDS/PRET / do_rename

Method do_rename

postscript.py:265–272  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

263
264 # ------------------------[ rename <old> <new> ]----------------------
265 def do_rename(self, arg):
266 arg = re.split("\s+", arg, 1)
267 if len(arg) > 1:
268 old = self.rpath(arg[0])
269 new = self.rpath(arg[1])
270 self.cmd('(' + old + ') (' + new + ') renamefile', False)
271 else:
272 self.onecmd("help rename")
273
274 # define alias but do not show alias in help
275 do_mv = do_rename

Callers

nothing calls this directly

Calls 3

cmdMethod · 0.95
rpathMethod · 0.80
onecmdMethod · 0.80

Tested by

no test coverage detected