Skip to content

Commit

Permalink
feat(processing): distinguish between carved and extracted results
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fasano committed Jul 2, 2024
1 parent 76ce0fb commit cdcbef8
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 = "_carve"
handlers: Handlers = BUILTIN_HANDLERS
dir_handlers: DirectoryHandlers = BUILTIN_DIR_HANDLERS
verbose: int = 1
Expand Down Expand Up @@ -584,7 +585,7 @@ def _extract_chunk(self, file, chunk: ValidChunk): # noqa: C901
CarveReport.from_chunk(self.task.path, inpath, 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 cdcbef8

Please sign in to comment.