MCPcopy Index your code
hub / github.com/RustPython/RustPython / makeunknown

Method makeunknown

Lib/tarfile.py:2669–2675  ·  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

2667 copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
2668
2669 def makeunknown(self, tarinfo, targetpath):
2670 """Make a file from a TarInfo object with an unknown type
2671 at targetpath.
2672 """
2673 self.makefile(tarinfo, targetpath)
2674 self._dbg(1, "tarfile: Unknown file type %r, " \
2675 "extracted as regular file." % tarinfo.type)
2676
2677 def makefifo(self, tarinfo, targetpath):
2678 """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