Thanks to visit codestin.com Credit goes to github.com
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 3093bf1 commit 2b87921Copy full SHA for 2b87921
1 file changed
Doc/library/pathlib.rst
@@ -891,8 +891,9 @@ call fails (for example because the path doesn't exist):
891
892
.. method:: Path.rename(target)
893
894
- Rename this file or directory to the given *target*. *target* can be
895
- 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
896
+ has permission. *target* can be either a string or another path object::
897
898
>>> p = Path('foo')
899
>>> p.open('w').write('some text')
0 commit comments