Skip to content

Commit f66156e

Browse files
committed
gh-132416: document behavior of Path.symlink_to() when link or/and target already exist
1 parent 3169743 commit f66156e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/pathlib.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,7 @@ Creating files and directories
15341534
symlink will be created to match. Otherwise, the symlink will be created
15351535
as a directory if *target_is_directory* is true or a file symlink (the
15361536
default) otherwise. On non-Windows platforms, *target_is_directory* is ignored.
1537+
If the link or/and the target already exist, :exc:`FileExistsError` is raised.
15371538

15381539
::
15391540

0 commit comments

Comments
 (0)