summaryrefslogtreecommitdiff
path: root/Doc/library/shutil.rst
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-06-24 08:42:54 -0700
committerGitHub <noreply@github.com>2019-06-24 08:42:54 -0700
commit60419a7e96577cf783b3b45bf3984f9fb0d7ddff (patch)
tree2718cb915663c42902621491ba60accce6729d42 /Doc/library/shutil.rst
parent9bbf4d7083a819cbcee2a6cd3df2802d4c50f734 (diff)
downloadcpython-git-60419a7e96577cf783b3b45bf3984f9fb0d7ddff.tar.gz
bpo-37363: Add audit events for a range of modules (GH-14301)
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r--Doc/library/shutil.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index dcb2a16cff..3cca9c84a2 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -249,6 +249,8 @@ Directory and files operations
  as arguments. By default, :func:`~shutil.copy2` is used, but any function
  that supports the same signature (like :func:`~shutil.copy`) can be used.
+ .. audit-event:: shutil.copytree "src dst"
+
.. versionchanged:: 3.3
Copy metadata when *symlinks* is false.
Now returns *dst*.
@@ -296,6 +298,8 @@ Directory and files operations
*excinfo*, will be the exception information returned by
:func:`sys.exc_info`. Exceptions raised by *onerror* will not be caught.
+ .. audit-event:: shutil.rmtree path
+
.. versionchanged:: 3.3
Added a symlink attack resistant version that is used automatically
if platform supports fd-based functions.
@@ -558,6 +562,8 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
The *verbose* argument is unused and deprecated.
+ .. audit-event:: shutil.make_archive "base_name format root_dir base_dir"
+
.. versionchanged:: 3.8
The modern pax (POSIX.1-2001) format is now used instead of
the legacy GNU format for archives created with ``format="tar"``.