Message61585
| 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. |
|