views:

128

answers:

2

I want to copy a data directory into my distribution dir. copy_tree does this just fine. However, the project is also an svn repository, and I don't want the distribution to have all the .svn files that the data dir has. Is there any easy way to do a copy_tree excluding the .svn files, or should I just write my own recursive dir copy? I feel someone must have had this issue before.

A: 

Does copy_tree copy dot files?

stray
A: 

I just used shutil.copytree, which takes an ignore kwd arg.

Claudiu