MCPcopy Create free account
hub / github.com/apache/singa / extract_tarfile

Function extract_tarfile

examples/cpp/cifar10/download_data.py:30–36  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

28
29
30def 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
39def check_dir_exist(dirpath):

Callers 1

do_downloadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected