(upstream_dir, local_dir)
| 31 | |
| 32 | |
| 33 | def copy_tree(upstream_dir, local_dir): |
| 34 | for f in os.listdir(upstream_dir): |
| 35 | full = os.path.join(upstream_dir, f) |
| 36 | if os.path.isdir(full): |
| 37 | shutil.copytree(full, os.path.join(local_dir, f)) |
| 38 | elif f not in excludes: |
| 39 | shutil.copy2(full, os.path.join(local_dir, f)) |
| 40 | |
| 41 | |
| 42 | def main(): |