I looked into the Python os interface, but was unable to locate a method to move a file. How would I do the equivalent of $ mv ... in Python?
$ mv ...
&g
After Python 3.4, you can also use pathlib's class Path to move file.
pathlib
Path
from pathlib import Path Path("path/to/current/file.foo").rename("path/to/new/destination/for/file.foo")
https://docs.python.org/3.4/library/pathlib.html#pathlib.Path.rename