| # Copyright 2016 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| def copytree(source_dir, target_dir): |
| This is needed because shutil.copytree requires that |target| not |
| for file in os.listdir(source_dir): |
| source = os.path.join(source_dir, file) |
| target = os.path.join(target_dir, file) |
| if os.path.isfile(source): |
| shutil.copy(source, target) |
| source_path = sys.argv[1] |
| target_path = sys.argv[2] |
| copytree(source_path, target_path) |
| if __name__ == '__main__': |