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 4d363d8 commit 3c2a1e7Copy full SHA for 3c2a1e7
Doc/library/pathlib.rst
@@ -1018,8 +1018,9 @@ call fails (for example because the path doesn't exist).
1018
1019
Rename this file or directory to the given *target*, and return a new Path
1020
instance pointing to *target*. On Unix, if *target* exists and is a file,
1021
- it will be replaced silently if the user has permission. *target* can be
1022
- 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.
1023
+ *target* can be either a string or another path object::
1024
1025
>>> p = Path('foo')
1026
>>> p.open('w').write('some text')
0 commit comments