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

Method fromtarfile

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

Return the next TarInfo object from TarFile object tarfile.

(cls, tarfile)

Source from the content-addressed store, hash-verified

1287
1288 @classmethod
1289 def fromtarfile(cls, tarfile):
1290 """Return the next TarInfo object from TarFile object
1291 tarfile.
1292 """
1293 buf = tarfile.fileobj.read(BLOCKSIZE)
1294 obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors)
1295 obj.offset = tarfile.fileobj.tell() - BLOCKSIZE
1296 return obj._proc_member(tarfile)
1297
1298 #--------------------------------------------------------------------------
1299 # The following are methods that are called depending on the type of a

Callers 4

_proc_gnulongMethod · 0.95
_proc_paxMethod · 0.95
__init__Method · 0.80
nextMethod · 0.80

Calls 4

frombufMethod · 0.80
_proc_memberMethod · 0.80
readMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected