Read archived file (in bytes) from zip
or tar
archives.
You can use this site to build your regex.
- Parameters:
archive_path (AnyPathStrType) – Archive path
regex (str) – Regex (used by re) as it can be found in the getmembers() list
file_list (list) – List of files contained in the archive. Optional, if not given it will be re-computed.
- Returns:
Archived file in bytes
- Return type:
bytes