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

Method makeunknown

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

Make a file from a TarInfo object with an unknown type at targetpath.

(self, tarinfo, targetpath)

Source from the content-addressed store, hash-verified

2465 copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
2466
2467 def makeunknown(self, tarinfo, targetpath):
2468 """Make a file from a TarInfo object with an unknown type
2469 at targetpath.
2470 """
2471 self.makefile(tarinfo, targetpath)
2472 self._dbg(1, "tarfile: Unknown file type %r, " \
2473 "extracted as regular file." % tarinfo.type)
2474
2475 def makefifo(self, tarinfo, targetpath):
2476 """Make a fifo called targetpath.

Callers 1

_extract_memberMethod · 0.95

Calls 2

makefileMethod · 0.95
_dbgMethod · 0.95

Tested by

no test coverage detected