Skip to content

Commit df2971f

Browse files
committed
gh-134538: link to example for windows readonly file handling in function docs
1 parent a66bae8 commit df2971f

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 read-only files
332+
on Windows.
333+
330334
.. audit-event:: shutil.rmtree path,dir_fd shutil.rmtree
331335

332336
.. versionchanged:: 3.3

0 commit comments

Comments
 (0)