Closed achapkowski closed 2 years ago
Hello,
What is the syntax to write a 7z file?
Reading is simple:
with libarchive.file_reader('test.7z') as archive: for entry in archive: for block in entry.get_blocks():
The help just shows the following:
file_writer(filepath, format_name, filter_name=None, archive_write_class=<class 'libarchive.write.ArchiveWrite'>, options='')
So what is the format_name options? What do I put for the filter_name?
filter_name
Also if I have a compressed file, is there a way to get all this information from that file to copy it exactly and just add new contents?
@Changaco thank you for the doc updates
Hello,
What is the syntax to write a 7z file?
Reading is simple:
The help just shows the following:
So what is the format_name options? What do I put for the
filter_name
?Also if I have a compressed file, is there a way to get all this information from that file to copy it exactly and just add new contents?