Message388570
The pathlib documentation of Path.rename() says "[o]n Unix, if target exists and is a file, it will be replaced silently if the user has permission". This leaves the behavior on Windows in question. The reader has to scroll down to the correspondence table to link to the documentation of os.rename() and presume that Path.rename() also raises FileExistsError for this case. The Path.rename() docs should just state upfront that "[o]n Windows, if target exists, FileExistsError will be raised". |
|
Date |
User |
Action |
Args |
2021-03-13 00:14:05 | eryksun | set | recipients:
+ eryksun, pitrou, ezio.melotti, r.david.murray, asvetlov, docs@python |
2021-03-13 00:14:05 | eryksun | set | messageid: <1615594445.87.0.913061860683.issue27886@roundup.psfhosted.org> |
2021-03-13 00:14:05 | eryksun | link | issue27886 messages |
2021-03-13 00:14:05 | eryksun | create | |
|