Replace os.rename with shutil.move, as it raises a FileExistsError on Windows.
See: - http://stackoverflow.com/a/8107391 - https://docs.python.org/2/library/os.html?highlight=os.rename#os.rename
Showing
Please
register
or
sign in
to comment