copytree
module¶
-
class
CopyTree
(src, dst, symlinks=False, ignore=None, copy_function=<function copy2>)[source][source]¶ Bases:
object
Rewrite
shutil.copytree()
.- Parameters
src (str (path-like)) – Directory tree to copy.
dest (str (path-like)) – Directory to move tree to.
symlinks (Bool, optional) – Whether to follow symlinks. Defaults to False.
ignore (
glob.glob()
pattern) – Files to not copy.copy_function (
shutil
copy function, optional) – Defaults toshutil.copy2()
.
- Returns
dst – TODO
- Return type
TODO type
Notes
Copying file access times may fail on Windows and if so ignore it.