Skip to content

Commit 47ee2ae

Browse files
gh-134538: Add link to shutil.rmtree example in function docs (GH-135540)
(cherry picked from commit e9b647d) Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
1 parent a93ff87 commit 47ee2ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/shutil.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ Directory and files operations
327327
The deprecated *onerror* is similar to *onexc*, except that the third
328328
parameter it receives is the tuple returned from :func:`sys.exc_info`.
329329

330+
.. seealso::
331+
:ref:`shutil-rmtree-example` for an example of handling the removal
332+
of a directory tree that contains read-only files.
333+
330334
.. audit-event:: shutil.rmtree path,dir_fd shutil.rmtree
331335

332336
.. versionchanged:: 3.3

0 commit comments

Comments
 (0)