March 2003
Intermediate to advanced
656 pages
39h 30m
English
copytree
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.