MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getinfo

Method getinfo

tools/python-3.11.9-amd64/Lib/zipfile.py:2275–2284  ·  view source on GitHub ↗

Supplement getinfo for implied dirs.

(self, name)

Source from the content-addressed store, hash-verified

2273 return dirname if dir_match else name
2274
2275 def getinfo(self, name):
2276 """
2277 Supplement getinfo for implied dirs.
2278 """
2279 try:
2280 return super().getinfo(name)
2281 except KeyError:
2282 if not name.endswith('/') or name not in self._name_set():
2283 raise
2284 return ZipInfo(filename=name)
2285
2286 @classmethod
2287 def make(cls, source):

Callers

nothing calls this directly

Calls 4

_name_setMethod · 0.95
ZipInfoClass · 0.85
endswithMethod · 0.80
getinfoMethod · 0.45

Tested by

no test coverage detected