MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / addfile

Method addfile

Lib/tarfile.py:2003–2027  ·  view source on GitHub ↗

Add the TarInfo object `tarinfo' to the archive. If `fileobj' is given, tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects using gettarinfo(). On Windows platforms, `fileobj' should always be opened with mode 'rb'

(self, tarinfo, fileobj=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

addMethod · 0.95
writestrMethod · 0.80

Calls 7

_checkMethod · 0.95
divmodFunction · 0.85
tobufMethod · 0.80
copyfileobjFunction · 0.70
copyMethod · 0.45
writeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected