This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author draghuram
Recipients draghuram, facundobatista, gvanrossum, init, pitrou
Date 2008-01-23.15:17:08
SpamBayes Score 0.08499283
Marked as misclassified No
Message-id <2c51ecee0801230717l55130366ldc39968e9a7bd1c8@mail.gmail.com>
In-reply-to <1201099585.88.0.373241749138.issue1577@psf.upfronthosting.co.za>
Content
> Before tackling this, I'd like a precision on os.rename(src, dst)
> semantics. The documentation says "If dst is a directory, OSError will
> be raised". However, under Linux, if src is a directory and dst is an
> empty directory, dst is overwritten with src:

I think the doc is incorrect. The rename() man page doesn't explicitly
say that destination can not be directory. In fact, a small C program
directly calling rename() (on SuSE 10) behaves exactly as your python
script.
History
Date User Action Args
2008-01-23 15:17:10draghuramsetspambayes_score: 0.0849928 -> 0.08499283
recipients: + draghuram, gvanrossum, facundobatista, pitrou, init
2008-01-23 15:17:08draghuramlinkissue1577 messages
2008-01-23 15:17:08draghuramcreate