(src_dir, dst_dir, ignore=None)
| 43 | shutil.copy2(src, dst) |
| 44 | |
| 45 | def do_copy_folder(src_dir, dst_dir, ignore=None): |
| 46 | import shutil |
| 47 | # check source directory |
| 48 | if not os.path.exists(src_dir): |
| 49 | return |
| 50 | |
| 51 | try: |
| 52 | if os.path.exists(dst_dir): |
| 53 | shutil.rmtree(dst_dir) |
| 54 | except: |
| 55 | print('Deletes folder: %s failed.' % dst_dir) |
| 56 | return |
| 57 | |
| 58 | shutil.copytree(src_dir, dst_dir, ignore = ignore) |
| 59 | |
| 60 | source_ext = ['c', 'h', 's', 'S', 'cpp', 'cxx', 'cc', 'xpm'] |
| 61 | source_list = [] |
no outgoing calls
no test coverage detected