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
import os,shutil current_path = "" ## source path new_path = "" ## destination path os.chdir(current_path) for files in os.listdir(): os.rename(files, new_path+'{}'.format(f)) shutil.move(files, new_path+'{}'.format(f)) ## to move files from
different disk ex. C: --> D: