diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 708a16e6bc8c94..01259757f680c1 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -1534,6 +1534,7 @@ Creating files and directories symlink will be created to match. Otherwise, the symlink will be created as a directory if *target_is_directory* is true or a file symlink (the default) otherwise. On non-Windows platforms, *target_is_directory* is ignored. + If the link or/and the target already exist, :exc:`FileExistsError` is raised. ::