MCPcopy Create free account
hub / github.com/defold/defold / extract

Function extract

editor/scripts/bundle.py:138–145  ·  view source on GitHub ↗
(file, path)

Source from the content-addressed store, hash-verified

136 zf.extractall(path)
137
138def extract(file, path):
139 log('Extracting %s to %s' % (file, path))
140 if fnmatch.fnmatch(file, "*.tar.gz-*"):
141 extract_tar(file, path)
142 elif fnmatch.fnmatch(file, "*.zip-*"):
143 extract_zip(file, path)
144 else:
145 assert False, "Don't know how to extract " + file
146
147def progress_bar(label, count, total, url, width=40):
148 is_tty = sys.stdout.isatty()

Callers 1

get_jdkFunction · 0.70

Calls 3

extract_tarFunction · 0.85
extract_zipFunction · 0.85
logFunction · 0.70

Tested by

no test coverage detected