Is it possible to force a rename os.rename to overwrite another file if it already exists? For example in the code below if the file Tests.csv already exists it would be re
From the Standard Library documentation, “On Windows, if dst already exists, OSError will be raised even if it is a file; there may be no way to implement an atomic rename when dst names an existing file.”
http://docs.python.org/library/os.html#os.rename
So the only solution, unfortunately, would be to change operating systems; Windows simply disallows a rename() atop an existing file.