8000 gh-134538: Add link to shutil.rmtree example in function docs (GH-135… · python/cpython@e9b647d · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit e9b647d

Browse files
gh-134538: Add link to shutil.rmtree example in function docs (GH-135540)
1 parent 17ac393 commit e9b647d

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)
0