Copy all files and folders from some root

In python, is there an easy way to copy all files and folders from some root to some destination root? Of course, creating all non-existent directories.

edit how this will change if the destination root directory already exists?

+4
source share
3 answers

Read this http://docs.python.org/library/shutil.html

There are some functions you can use, for example copytree

0
source

All Articles