Construct a TarInfo object from a 512 byte bytes object. To support the old v7 tar format AREGTYPE headers are transformed to DIRTYPE headers if their name ends in '/'.
(cls, buf, encoding, errors)
| 1275 | |
| 1276 | @classmethod |
| 1277 | def frombuf(cls, buf, encoding, errors): |
| 1278 | """Construct a TarInfo object from a 512 byte bytes object. |
| 1279 | |
| 1280 | To support the old v7 tar format AREGTYPE headers are |
| 1281 | transformed to DIRTYPE headers if their name ends in '/'. |
| 1282 | """ |
| 1283 | return cls._frombuf(buf, encoding, errors) |
| 1284 | |
| 1285 | @classmethod |
| 1286 | def _frombuf(cls, buf, encoding, errors, *, dircheck=True): |