(src, dst)
| 31 | from SCons.Script import * |
| 32 | |
| 33 | def do_copy_file(src, dst): |
| 34 | # check source file |
| 35 | if not os.path.exists(src): |
| 36 | return |
| 37 | |
| 38 | path = os.path.dirname(dst) |
| 39 | # mkdir if path not exist |
| 40 | if not os.path.exists(path): |
| 41 | os.makedirs(path) |
| 42 | |
| 43 | shutil.copy2(src, dst) |
| 44 | |
| 45 | def do_copy_folder(src_dir, dst_dir, ignore=None): |
| 46 | import shutil |
no outgoing calls
no test coverage detected