[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

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

2007-12-10 Thread Ingemar Nilsson
Ingemar Nilsson added the comment: Well, if that's what you want, I suggest documenting it in the manual. >From reading the manual, I thought that shutil.move() would behave like mv, and I was surprised that it doesn't. To me the big issue isn't how it is solved, it's r

[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://