I'm confused with file moving under python. Under windows commandline, if i have directory c:\a and a directory c:\b, i can do
move c:\a c:\b
which moves a to b result is directory structure c:\b\a
If I try this with os.rename or shutil.move:
os.rename("c:/a", "c:/b")
I get
WindowsError: [Error 17] Cannot create a file when that file already exists
If I move a single file under c:\a, it works.
In python how do i move a directory to another existing directory?