diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 708a16e6bc8c94..d040d22a4e2d88 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -1535,6 +1535,8 @@ Creating files and directories 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 this path already exists, :exc:`FileExistsError` is raised. + :: >>> p = Path('mylink')