extract Method
Extracts the compressed file from the bzip2 archive.
Syntax
def extract() -> None: ...
Remarks
Invoking extract decompresses the archive specified by archive_file. The compressed file will be extracted, and written to disk.
If file_decompressed_name is set to a nonempty string the file will be written there. Otherwise the class will automatically set file_decompressed_name to an appropriate value:
If archive_file ends in ".bz2", this filename, less the ".bz2" extension will be used.
If this condition does not hold, ".unzipped" will be appended to archive_file.