Message273840
Just keeping the reference to `os.rename()`: https://docs.python.org/3/library/os.html#os.rename
Aha, `os.rename` says: "On Unix, if dst exists and is a file, it will be replaced silently if the user has permission." and "On Windows, if dst already exists, OSError will be raised even if it is a file."
Sorry, I've missed this.
Maybe it worth to add `.. warning:` section for both `os.rename` and `pathlib.Path.rename`? |
|
Date |
User |
Action |
Args |
2016-08-28 20:03:34 | asvetlov | set | recipients:
+ asvetlov, pitrou, r.david.murray, docs@python |
2016-08-28 20:03:34 | asvetlov | set | messageid: <1472414614.15.0.405849285123.issue27886@psf.upfronthosting.co.za> |
2016-08-28 20:03:34 | asvetlov | link | issue27886 messages |
2016-08-28 20:03:34 | asvetlov | create | |
|