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

Function download

editor/scripts/bundle.py:163–169  ·  view source on GitHub ↗
(label, url)

Source from the content-addressed store, hash-verified

161 log('Downloading %s %.2f%%' % (url, 100 * count / float(total)))
162
163def download(label, url):
164 label = 'Downloading %s...' % label
165 path = http_cache.download(url, lambda count, total: progress_bar(label, count, total, url))
166 if not path:
167 log('Failed to download %s' % url)
168 sys.exit(5)
169 return path
170
171def ziptree(path, outfile, directory = None):
172 # Directory is similar to -C in tar

Callers 2

launcher_pathFunction · 0.70
get_jdkFunction · 0.70

Calls 4

progress_barFunction · 0.85
downloadMethod · 0.80
exitMethod · 0.80
logFunction · 0.70

Tested by

no test coverage detected