(dirpath)
| 37 | |
| 38 | |
| 39 | def check_dir_exist(dirpath): |
| 40 | if os.path.exists(dirpath): |
| 41 | print('Directory %s does exist. To redownload the files, '\ |
| 42 | 'remove the existing directory and %s.tar.gz' % (dirpath, dirpath)) |
| 43 | return True |
| 44 | else: |
| 45 | return False |
| 46 | |
| 47 | |
| 48 | def do_download(dirpath, gzfile, url): |