MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / downloadAndExtractFile

Function downloadAndExtractFile

deps/bootstrap.py:367–369  ·  view source on GitHub ↗
(url, download_dir, target_dir_name, sha1_hash = None, force_download = False, user_agent = None)

Source from the content-addressed store, hash-verified

365
366
367def downloadAndExtractFile(url, download_dir, target_dir_name, sha1_hash = None, force_download = False, user_agent = None):
368 target_filename = downloadFile(url, download_dir, target_dir_name, sha1_hash, force_download, user_agent)
369 extractFile(target_filename, os.path.join(SRC_DIR, target_dir_name))
370
371
372def applyPatchFile(patch_name, dir_name, pnum):

Callers 1

mainFunction · 0.85

Calls 2

downloadFileFunction · 0.85
extractFileFunction · 0.85

Tested by

no test coverage detected