(self, arg)
| 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 |