```pythondef chfile(fromfile, tofile): fromfile = Path(fromfile) tofile = Path(tofile) fromfile.replace(tofile)```