[issue1577] shutil.move() does not use os.rename() if dst is a directory

2007-12-12 Thread Ingemar Nilsson
Ingemar Nilsson added the comment: If you want a way to do the mv semantics, propose a new API. shutil.mv()? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1577 __ ___ Python

[issue1577] shutil.move() does not use os.rename() if dst is a directory

2007-12-09 Thread Ingemar Nilsson
New submission from Ingemar Nilsson: If you use shutil.move(src, dst) to move a file src to a directory dst, the file will not be renamed into the dst directory, but rather copied-then-removed, even if src and dst is on the same filesystem. There are several ways to fix this: * (The easiest