def copy_tree(src, dst):
    """Copy directory tree"""
    for root, subdirs, files in os.walk(src):
        current_dest = root.replace(src, dst)
        if not os.path.exists(current_dest):
            os.makedirs(current_dest)
        for f in files:
            shutil.copy(os.path.join(root, f), os.path.join(current_dest, f))
def copy_tree ( src , dst ) : for root , subdirs , files in os . walk ( src ) : current_dest = root . replace ( src , dst ) if not os . path . exists ( current_dest ) : os . makedirs ( current_dest ) for f in files : shutil . copy ( os . path . join ( root , f ) , os . path . join ( current_dest , f ) )
Copy directory tree