diff options
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r-- | Doc/library/shutil.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 7baff30..e09b646 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -20,7 +20,7 @@ copying and removal. For operations on individual files, see also the Even the higher-level file copying functions (:func:`copy`, :func:`copy2`) can't copy all file metadata. - + On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type and creator codes will @@ -124,7 +124,7 @@ copying and removal. For operations on individual files, see also the error. Copy permissions and times of directories using :func:`copystat`. .. versionchanged:: 2.6 - Added the *ignore* argument to be able to influence what is being copied. + Added the *ignore* argument to be able to influence what is being copied. .. function:: rmtree(path[, ignore_errors[, onerror]]) @@ -189,7 +189,7 @@ provided by this module. :: os.makedirs(dst) errors = [] for name in names: - if name in ignored_names: + if name in ignored_names: continue srcname = os.path.join(src, name) dstname = os.path.join(dst, name) @@ -221,7 +221,7 @@ provided by this module. :: Another example that uses the :func:`ignore_patterns` helper:: from shutil import copytree, ignore_patterns - + copytree(source, destination, ignore=ignore_patterns('*.pyc', 'tmp*')) This will copy everything except ``.pyc`` files and files or directories whose @@ -231,7 +231,7 @@ Another example that uses the *ignore* argument to add a logging call:: from shutil import copytree import logging - + def _logpath(path, names): logging.info('Working in %s' % path) return [] # nothing will be ignored |