MCPcopy Create free account
hub / github.com/culvertsoft/mgen / unzip

Function unzip

buildutil.py:157–162  ·  view source on GitHub ↗
(file, outPath)

Source from the content-addressed store, hash-verified

155 z.write(absfn, zfn)
156
157def unzip(file, outPath):
158 fh = open(file, 'rb')
159 z = zipfile.ZipFile(fh)
160 for name in z.namelist():
161 z.extract(name, outPath + "/")
162 fh.close()
163
164###################################
165# Doit utils

Callers 1

installFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected