TarInfo.isdev() Return
TarInfo.isblk() Return
TarFile.list(verbose=True, *, members=None) Print a table of contents to sys.stdout. If verbose is
TarFile.add(name, arcname=None, recursive=True, exclude=None, *, filter=None) Add the file name to the archive. name
classmethod TarInfo.fromtarfile(tarfile) Read the next member from the TarFile object tarfile and return
zipfile.is_zipfile(filename) Returns True if filename is a valid ZIP file based on its magic number, otherwise
TarInfo.isreg() Same as isfile().
classmethod TarFile.open(...) Alternative constructor. The tarfile.open() function is actually a shortcut to this
ZipFile.read(name, pwd=None) Return the bytes of the file name in the archive. name is the name of the file
exception zipfile.BadZipfile Alias of BadZipFile, for compatibility with older Python versions.
Page 9 of 14