MCPcopy Create free account
hub / github.com/Vector35/debugger / extract_zip

Function extract_zip

scripts/build.py:105–112  ·  view source on GitHub ↗
(bundle, target)

Source from the content-addressed store, hash-verified

103
104
105def extract_zip(bundle, target):
106 if sys.platform.startswith("win"):
107 z = zipfile.ZipFile(bundle)
108 z.extractall(target)
109 return True
110 else:
111 # Don't use zipfile on unix systems, it doesn't do permissions properly
112 return subprocess.call(["unzip", "-DD", bundle, "-d", target]) == 0
113
114
115if not os.path.exists(bn_dev_path):

Callers 1

build.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected