Name
copytree
Synopsis
copytree(src
,dst
,symlinks
=False)
Copies the whole directory tree rooted at
src
into the destination directory named
by dst
. dst
must not already exist, as copytree
creates it.
copytree
copies each file by using function
copy2
. When symlinks
is
true, copytree
creates symbolic links in the new
tree when it finds symbolic links in the source tree. When
symlinks
is false,
copytree
follows each symbolic link it finds, and
copies the linked-to file with the link’s name. On
platforms that do not have the concept of a symbolic link, such as
Windows, copytree
ignores argument
symlinks
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.