MCPcopy
hub / github.com/mikf/gallery-dl / write

Method write

gallery_dl/postprocessor/zip.py:56–65  ·  view source on GitHub ↗
(self, pathfmt, zfile)

Source from the content-addressed store, hash-verified

54 return zipfile.ZipFile(*self.args)
55
56 def write(self, pathfmt, zfile):
57 # 'NameToInfo' is not officially documented, but it's available
58 # for all supported Python versions and using it directly is a lot
59 # faster than calling getinfo()
60 if self.files:
61 self.write_extra(pathfmt, zfile, self.files)
62 self.files = None
63 if pathfmt.filename not in zfile.NameToInfo:
64 zfile.write(pathfmt.temppath, pathfmt.filename)
65 pathfmt.delete = self.delete
66
67 def write_fast(self, pathfmt):
68 if self.zfile is None:

Callers 15

write_fastMethod · 0.95
write_safeMethod · 0.95
initializeFunction · 0.45
__call__Method · 0.45
mainFunction · 0.45
outMethod · 0.45
stdout_write_flushFunction · 0.45
stderr_write_flushFunction · 0.45
stdout_writeFunction · 0.45
stderr_writeFunction · 0.45
dump_jsonFunction · 0.45
dump_responseFunction · 0.45

Calls 1

write_extraMethod · 0.95

Tested by

no test coverage detected