MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / get_zipfile

Method get_zipfile

data/zipreader.py:31–36  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

29
30 @staticmethod
31 def get_zipfile(path):
32 zip_bank = ZipReader.zip_bank
33 if path not in zip_bank:
34 zfile = zipfile.ZipFile(path, 'r')
35 zip_bank[path] = zfile
36 return zip_bank[path]
37
38 @staticmethod
39 def split_zip_style_path(path):

Callers 4

list_folderMethod · 0.80
list_filesMethod · 0.80
readMethod · 0.80
imreadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected