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 31fa41e commit f51ed04Copy full SHA for f51ed04
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, :data:`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