8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24223ec commit 61dfe37Copy full SHA for 61dfe37
Doc/library/pathlib.rst
@@ -1021,8 +1021,9 @@ call fails (for example because the path doesn't exist).
1021
1022
Rename this file or directory to the given *target*, and return a new Path
1023
instance pointing to *target*. On Unix, if *target* exists and is a file,
1024
- it will be replaced silently if the user has permission. *target* can be
1025
- either a string or another path object::
+ it will be replaced silently if the user has permission.
+ On Windows, if *target* exists, :exc:`FileExistsError` will be raised.
1026
+ *target* can be either a string or another path object::
1027
1028
>>> p = Path('foo')
1029
>>> p.open('w').write('some text')
0 commit comments