Skip to content

Commit cb3cd4f

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/os.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3510,6 +3510,8 @@ features:
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.
35123512

3513+
If the *dst* already exists, :exc:`FileExistsError` is raised.
3514+
35133515
This function can support :ref:`paths relative to directory descriptors
35143516
<dir_fd>`.
35153517

0 commit comments

Comments
 (0)