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

This commit is contained in:
alexey semenyuk 2025-06-19 02:10:20 +05:00 committed by GitHub
parent 17ac3933c3
commit e9b647dd30
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