Message61585
> 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. |
|
| Date |
User |
Action |
Args |
| 2008-01-23 15:17:10 | draghuram | set | spambayes_score: 0.0849928 -> 0.0849928 recipients:
+ draghuram, gvanrossum, facundobatista, pitrou, init |
| 2008-01-23 15:17:08 | draghuram | link | issue1577 messages |
| 2008-01-23 15:17:08 | draghuram | create | |
|