MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / get_zip_files

Method get_zip_files

lib/file_reader.py:95–100  ·  view source on GitHub ↗
(self, content:bytearray)

Source from the content-addressed store, hash-verified

93 return fragments[1], fragments[0]
94
95 def get_zip_files(self, content:bytearray)->str:
96 text = ""
97 with zipfile.ZipFile(io.BytesIO(content), 'r') as zip_file:
98 text = '\n'.join(zip_file.namelist())
99
100 return text
101 def get_file_type(self, content_bytes:bytes):
102 #content_bytes = b64decode(content)
103 return self.get_office(content_bytes)

Callers 1

get_from_base64Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected