gh-134538: Add link to shutil.rmtree example in function docs (GH-135540)

(cherry picked from commit e9b647dd30)

Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-06-18 23:16:07 +02:00 committed by GitHub
parent a93ff87375
commit 47ee2aedf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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