From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 18 Jun 2025 21:17:42 +0000 (+0200) Subject: gh-134538: Add link to shutil.rmtree example in function docs (GH-135540) X-Git-Tag: v3.13.6~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e783e55748d2ac8969a0a60686a49db22e5d173;p=thirdparty%2FPython%2Fcpython.git gh-134538: Add link to shutil.rmtree example in function docs (GH-135540) (cherry picked from commit e9b647dd30d22cef465972d898a34c4b1bb6615d) Co-authored-by: alexey semenyuk --- diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 3572bfbabd06..221b257e0925 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -327,6 +327,10 @@ Directory and files operations The deprecated *onerror* is similar to *onexc*, except that the third parameter it receives is the tuple returned from :func:`sys.exc_info`. + .. seealso:: + :ref:`shutil-rmtree-example` for an example of handling the removal + of a directory tree that contains read-only files. + .. audit-event:: shutil.rmtree path,dir_fd shutil.rmtree .. versionchanged:: 3.3