Merge branch 'master' of github.com:mahmoud/boltons

This commit is contained in:
Mahmoud Hashemi 2020-08-11 18:31:53 -07:00
commit 29320d636a
1 changed files with 3 additions and 0 deletions

View File

@ -515,6 +515,9 @@ def copy_tree(src, dst, symlinks=False, ignore=None):
raise an exception if part of the tree already exists. It achieves
this by using :func:`mkdir_p`.
As of Python 3.8, you may pass :func:`shutil.copytree` the
`dirs_exist_ok=True` flag to achieve the same effect.
Args:
src (str): Path of the source directory to copy.
dst (str): Destination path. Existing directories accepted.