(filepath)
| 28 | |
| 29 | |
| 30 | def extract_tarfile(filepath): |
| 31 | if os.path.exists(filepath): |
| 32 | print('The tar file does exist. Extracting it now..') |
| 33 | with tarfile.open(filepath, 'r') as f: |
| 34 | f.extractall('.') |
| 35 | print('Finished!') |
| 36 | sys.exit(0) |
| 37 | |
| 38 | |
| 39 | def check_dir_exist(dirpath): |