1import os
2import shutil
3
4os.rename("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
5shutil.move("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
6os.replace("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
7