Skip to content

Commit

Permalink
Docs tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Jul 30, 2024
1 parent 8bef16b commit a51ce63
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,8 @@ Copying, renaming and deleting
preserve_metadata=False, dirs_exist_ok=False, \
ignore=None, on_error=None)

Recursively copy this file or directory tree to the given destination.
Copy this file or directory tree to the given *target*. If both paths are
existing files, the target file will be replaced.

If a symlink is encountered and *follow_symlinks* is true (the default),
the symlink's target is copied. Otherwise, the symlink is recreated at the
Expand All @@ -1556,8 +1557,8 @@ Copying, renaming and deleting
This argument has no effect on Windows, where metadata is always preserved
when copying.

If the source and destination are existing directories and *dirs_exist_ok*
is false (the default), a :exc:`FileExistsError` is raised. Otherwise, the
If the source and target are existing directories and *dirs_exist_ok* is
false (the default), a :exc:`FileExistsError` is raised. Otherwise, the
copying operation will continue if it encounters existing directories, and
files within the destination tree will be overwritten by corresponding
files from the source tree.
Expand Down

0 comments on commit a51ce63

Please sign in to comment.