Skip to content

bpo-39390: Update shutil.copytree doc - Add versionchanged 3.8 notice for ignore callable #18069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/shutil.rst
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,13 @@ Directory and files operations
.. versionadded:: 3.8
The *dirs_exist_ok* parameter.

.. versionchanged:: 3.8
The types of the arguments to the *ignore* callable have changed. The
first argument (the directory being visited) can be a string, a
func:`os.DirEntry` or a func:`pathlib.Path`; Previously it was a string.
The second argument is a set of strings; previously it was a list of
strings.

.. function:: rmtree(path, ignore_errors=False, onerror=None)

.. index:: single: directory; deleting
Expand Down