mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2025-01-08 06:29:49 +00:00
Display 'dcmp' IDs in command line listings of compressed resources
This commit is contained in:
parent
c108af60ca
commit
84f09d0b83
@ -199,9 +199,9 @@ def _describe_resource(res: api.Resource, *, include_type: bool, decompress: boo
|
||||
try:
|
||||
res.compressed_info
|
||||
except compress.DecompressError:
|
||||
length_desc = f"decompression failed ({res.length_raw} bytes compressed)"
|
||||
length_desc = f"unparseable compressed data header ({res.length_raw} bytes compressed)"
|
||||
else:
|
||||
length_desc = f"{res.length} bytes ({res.length_raw} bytes compressed)"
|
||||
length_desc = f"{res.length} bytes ({res.length_raw} bytes compressed, 'dcmp' ({res.compressed_info.dcmp_id}) format)"
|
||||
else:
|
||||
length_desc = f"{res.length_raw} bytes"
|
||||
content_desc_parts.append(length_desc)
|
||||
|
Loading…
Reference in New Issue
Block a user