Skip to content

Commit

Permalink
feat(processing): Support configurable carve suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fasano authored and e3krisztian committed Nov 26, 2024
1 parent 46bf715 commit 8024aed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unblob/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class ExtractionConfig:
process_num: int = DEFAULT_PROCESS_NUM
keep_extracted_chunks: bool = False
extract_suffix: str = "_extract"
carve_suffix: str = "_extract"
handlers: Handlers = BUILTIN_HANDLERS
dir_handlers: DirectoryHandlers = BUILTIN_DIR_HANDLERS
verbose: int = 1
Expand Down Expand Up @@ -579,7 +580,7 @@ def _extract_chunk(self, file, chunk: ValidChunk): # noqa: C901
carved_path = None
else:
inpath = carve_valid_chunk(self.carve_dir, file, chunk)
extract_dir = self.carve_dir / (inpath.name + self.config.extract_suffix)
extract_dir = self.carve_dir / (inpath.name + self.config.carve_suffix)
carved_path = inpath

if extract_dir.exists():
Expand Down

0 comments on commit 8024aed

Please sign in to comment.