cpython/Doc/whatsnew
Barney Gale 35e998f560
GH-73991: Add `pathlib.Path.copytree()` (#120718)
Add `pathlib.Path.copytree()` method, which recursively copies one
directory to another.

This differs from `shutil.copytree()` in the following respects:

1. Our method has a *follow_symlinks* argument, whereas shutil's has a
   *symlinks* argument with an inverted meaning.
2. Our method lacks something like a *copy_function* argument. It always
   uses `Path.copy()` to copy files.
3. Our method lacks something like a *ignore_dangling_symlinks* argument.
   Instead, users can filter out danging symlinks with *ignore*, or
   ignore exceptions with *on_error*
4. Our *ignore* argument is a callable that accepts a single path object,
   whereas shutil's accepts a path and a list of child filenames.
5. We add an *on_error* argument, which is a callable that accepts
   an `OSError` instance. (`Path.walk()` also accepts such a callable).

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
2024-06-23 22:01:12 +01:00
..
2.0.rst gh-101100: Fix Sphinx warnings in `whatsnew/2.0.rst` (#112351) 2024-02-25 02:45:56 -07:00
2.1.rst gh-101100: Fix Sphinx warnings in `whatsnew/2.1.rst` (#112357) 2024-02-25 23:49:04 -07:00
2.2.rst docs: fix a few typos identified by codespell (#119516) 2024-05-25 18:13:31 -07:00
2.3.rst Add 'The Python 2.3 Method Resolution Order' (#116435) 2024-04-15 13:01:15 +03:00
2.4.rst gh-101100: Fix Sphinx warnings from PEP 3108 stdlib re-organisation (#114327) 2024-02-04 09:45:35 +00:00
2.5.rst gh-120345: Fix incorrect use of the :class: role with the "()" suffix (GH-120347) 2024-06-12 17:23:03 +03:00
2.6.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
2.7.rst docs: fix a few typos identified by codespell (#119516) 2024-05-25 18:13:31 -07:00
3.0.rst gh-101100: Fix Sphinx warnings from PEP 3108 stdlib re-organisation (#114327) 2024-02-04 09:45:35 +00:00
3.1.rst gh-101100: Fix Sphinx warnings in `whatsnew/3.1.rst` (#115575) 2024-02-17 02:39:07 -07:00
3.2.rst gh-118671: Updated dead ActiveState links (#118730) 2024-05-08 01:06:38 -06:00
3.3.rst gh-113664: Improve style of Big O notation (GH-113695) 2024-01-10 15:01:18 +02:00
3.4.rst docs: fix a few typos identified by codespell (#119516) 2024-05-25 18:13:31 -07:00
3.5.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.rst docs: fix a few typos identified by codespell (#119516) 2024-05-25 18:13:31 -07:00
3.7.rst gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (#118364) 2024-04-28 20:31:22 +03:00
3.8.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.9.rst GH-120804: add docs for removal for asyncio child watchers (#120895) 2024-06-23 13:14:12 +00:00
3.10.rst gh-101100: Fix Sphinx warnings in `whatsnew/3.10.rst` (#118356) 2024-04-28 18:12:25 +00:00
3.11.rst gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (#120480) 2024-06-16 22:47:10 -07:00
3.12.rst GH-120804: add docs for removal for asyncio child watchers (#120895) 2024-06-23 13:14:12 +00:00
3.13.rst gh-117511: Make PyMutex public in the non-limited API (#117731) 2024-06-20 11:29:08 -04:00
3.14.rst GH-73991: Add `pathlib.Path.copytree()` (#120718) 2024-06-23 22:01:12 +01:00
changelog.rst Include additional changes to support blurbified NEWS (#3340) 2017-09-05 00:46:18 -07:00
index.rst Fix file extensions for 3.14 Whats New (#118770) 2024-05-08 16:40:40 +00:00