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

Method _extract_one

tools/python-3.11.9-amd64/Lib/tarfile.py:2323–2334  ·  view source on GitHub ↗

Extract from filtered tarinfo to disk

(self, tarinfo, path, set_attrs, numeric_owner)

Source from the content-addressed store, hash-verified

2321 return tarinfo
2322
2323 def _extract_one(self, tarinfo, path, set_attrs, numeric_owner):
2324 """Extract from filtered tarinfo to disk"""
2325 self._check("r")
2326
2327 try:
2328 self._extract_member(tarinfo, os.path.join(path, tarinfo.name),
2329 set_attrs=set_attrs,
2330 numeric_owner=numeric_owner)
2331 except OSError as e:
2332 self._handle_fatal_error(e)
2333 except ExtractError as e:
2334 self._handle_nonfatal_error(e)
2335
2336 def _handle_nonfatal_error(self, e):
2337 """Handle non-fatal error (ExtractError) according to errorlevel"""

Callers 2

extractallMethod · 0.95
extractMethod · 0.95

Calls 5

_checkMethod · 0.95
_extract_memberMethod · 0.95
_handle_fatal_errorMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected