We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2162237 + 2b87921 commit 663dacdCopy full SHA for 663dacd
1 file changed
Doc/library/pathlib.rst
@@ -900,8 +900,9 @@ call fails (for example because the path doesn't exist):
900
901
.. method:: Path.rename(target)
902
903
- Rename this file or directory to the given *target*. *target* can be
904
- either a string or another path object::
+ Rename this file or directory to the given *target*. On Unix, if
+ *target* exists and is a file, it will be replaced silently if the user
905
+ has permission. *target* can be either a string or another path object::
906
907
>>> p = Path('foo')
908
>>> p.open('w').write('some text')
0 commit comments