PyDocs

Nav

Data Compression and Archiving

is_tarfile

tarfile

function (source)
  • is_tarfile(name)
Return True if name points to a tar archive that we
are able to handle, else return False.

'name' should be a string, file, or file-like object.
Changed in 3.9
  • 3.9: Support for file and file-like objects.
0 Examples
No examples for tarfile/is_tarfile.
See Also
No see-alsos for tarfile/is_tarfile
0 Notes
No notes for is_tarfile