diff options
author | Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> | 2019-05-04 15:27:10 (GMT) |
---|---|---|
committer | Antoine Pitrou <antoine@python.org> | 2019-05-04 15:27:10 (GMT) |
commit | 6b5b013bcc22a27d6231c2796882e44ddb42be67 (patch) | |
tree | 3542414369283f216bb25a02f99ddea67180519e /Doc/library/pathlib.rst | |
parent | f0900199d53df97bd792ac5a1678f8c477f117bb (diff) | |
download | cpython-6b5b013bcc22a27d6231c2796882e44ddb42be67.zip cpython-6b5b013bcc22a27d6231c2796882e44ddb42be67.tar.gz cpython-6b5b013bcc22a27d6231c2796882e44ddb42be67.tar.bz2 |
bpo-26978: Implement pathlib.Path.link_to (Using os.link) (GH-12990)
Diffstat (limited to 'Doc/library/pathlib.rst')
-rw-r--r-- | Doc/library/pathlib.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 450e8ff..7a4a20d 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -1054,6 +1054,13 @@ call fails (for example because the path doesn't exist). use :func:`Path.rmdir` instead. +.. method:: Path.link_to(target) + + Create a hard link pointing to a path named *target*. + + .. versionchanged:: 3.8 + + .. method:: Path.write_bytes(data) Open the file pointed to in bytes mode, write *data* to it, and close the |