Skip to content

Commit 8024aed

Browse files
AndrewFasanoe3krisztian
authored andcommitted
feat(processing): Support configurable carve suffix
1 parent 46bf715 commit 8024aed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unblob/processing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class ExtractionConfig:
9595
process_num: int = DEFAULT_PROCESS_NUM
9696
keep_extracted_chunks: bool = False
9797
extract_suffix: str = "_extract"
98+
carve_suffix: str = "_extract"
9899
handlers: Handlers = BUILTIN_HANDLERS
99100
dir_handlers: DirectoryHandlers = BUILTIN_DIR_HANDLERS
100101
verbose: int = 1
@@ -579,7 +580,7 @@ def _extract_chunk(self, file, chunk: ValidChunk): # noqa: C901
579580
carved_path = None
580581
else:
581582
inpath = carve_valid_chunk(self.carve_dir, file, chunk)
582-
extract_dir = self.carve_dir / (inpath.name + self.config.extract_suffix)
583+
extract_dir = self.carve_dir / (inpath.name + self.config.carve_suffix)
583584
carved_path = inpath
584585

585586
if extract_dir.exists():

0 commit comments

Comments
 (0)