8000 gh-132416: document behavior of os.symlink when dst already exists · python/cpython@18050ff · GitHub
[go: up one dir, main page]

Skip to content
6600

Commit 18050ff

Browse files
committed
gh-132416: document behavior of os.symlink when dst already exists
1 parent 3169743 commit 18050ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/os.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,7 @@ features:
35093509
symlink will be created to match. Otherwise, the symlink will be created
35103510
as a directory if *target_is_directory* is ``True`` or a file symlink (the
35113511
default) otherwise. On non-Windows platforms, *target_is_directory* is ignored.
3512+
If the *dst* already exists, :exc:`FileExistsError` is raised.
35123513

35133514
This function can support :ref:`paths relative to directory descriptors
35143515
<dir_fd>`.

0 commit comments

Comments
 (0)
0