tarfile.TarInfo.tobuf()

TarInfo.tobuf(format=DEFAULT_FORMAT, encoding=ENCODING, errors='surrogateescape')

Create a string buffer from a TarInfo object. For information on the arguments see the constructor of the TarFile class.

Changed in version 3.2: Use 'surrogateescape' as the default for the errors argument.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.