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

Method _check

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

Check if TarFile is still open, and if the operation's mode corresponds to TarFile's mode.

(self, mode=None)

Source from the content-addressed store, hash-verified

2696 self._loaded = True
2697
2698 def _check(self, mode=None):
2699 """Check if TarFile is still open, and if the operation's mode
2700 corresponds to TarFile's mode.
2701 """
2702 if self.closed:
2703 raise OSError("%s is closed" % self.__class__.__name__)
2704 if mode is not None and self.mode not in mode:
2705 raise OSError("bad operation for mode %r" % self.mode)
2706
2707 def _find_link_target(self, tarinfo):
2708 """Find the target member of a symlink or hardlink member in the

Callers 9

getmembersMethod · 0.95
gettarinfoMethod · 0.95
listMethod · 0.95
addMethod · 0.95
addfileMethod · 0.95
_extract_oneMethod · 0.95
extractfileMethod · 0.95
nextMethod · 0.95
__enter__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected