Skip to content

Commit 893b40c

Browse files
alex-semenyukAgent-Hellboy
authored andcommitted
pythongh-134538: Add link to shutil.rmtree example in function docs (pythonGH-135540)
1 parent 83b76ba commit 893b40c

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)