copy_tree copies the files and folders under src to dst, it's same as cp -r a/b/* x/y/
in shell
$ tree
.
|__a
| |__b
| |__ab.txt
|__x
|__y
>>> from distutils.dir_util import copy_tree
>>> copy_tree('a/b','x/y')
['x/y/aa.txt']
>>>
How to make it copy the folder b
as is? like doing cp -r a/b x/y/
I need to copy b
into x/y
, so it becomes x/y/b