MCPcopy Index your code
hub / github.com/python/cpython / getinfo

Method getinfo

Lib/zipfile/_path/__init__.py:135–144  ·  view source on GitHub ↗

Supplement getinfo for implied dirs.

(self, name)

Source from the content-addressed store, hash-verified

133 return dirname if dir_match else name
134
135 def getinfo(self, name):
136 """
137 Supplement getinfo for implied dirs.
138 """
139 try:
140 return super().getinfo(name)
141 except KeyError:
142 if not name.endswith('/') or name not in self._name_set():
143 raise
144 return zipfile.ZipInfo(filename=name)
145
146 @classmethod
147 def make(cls, source):

Callers 1

is_symlinkMethod · 0.45

Calls 3

_name_setMethod · 0.95
superClass · 0.85
endswithMethod · 0.45

Tested by

no test coverage detected