Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf66156e

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp