MCPcopy Index your code
hub / github.com/python/cpython / makeunknown

Method makeunknown

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

2686 copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
2687
2688 def makeunknown(self, tarinfo, targetpath):
2689 """Make a file from a TarInfo object with an unknown type
2690 at targetpath.
2691 """
2692 self.makefile(tarinfo, targetpath)
2693 self._dbg(1, "tarfile: Unknown file type %r, " \
2694 "extracted as regular file." % tarinfo.type)
2695
2696 def makefifo(self, tarinfo, targetpath):
2697 """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