Skip to content

Commit

Permalink
fixup! feat(handler): add multi-part gzip handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
qkaiser committed Jan 4, 2024
1 parent a405de3 commit 47b2fac
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 20 deletions.
Git LFS file not shown
Git LFS file not shown

This file was deleted.

Git LFS file not shown

This file was deleted.

Git LFS file not shown

This file was deleted.

Git LFS file not shown
6 changes: 1 addition & 5 deletions unblob/handlers/compression/gzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,7 @@ def calculate_multifile(self, file: Path) -> Optional[MultiFile]:
if file != paths[0]:
return None

valid_gzips = sum([self.is_valid_gzip(path) for path in paths])

# the presence of multiple valid gzips with the same stem would mean each volume
# is independently compressed.
if valid_gzips == 1:
if self.is_valid_gzip(file):
files_size = sum(path.stat().st_size for path in paths)
logger.debug(
"Multi-volume files", paths=paths, files_size=files_size, _verbosity=2
Expand Down

0 comments on commit 47b2fac

Please sign in to comment.