Skip to content

Commit

Permalink
ℹ️
Browse files Browse the repository at this point in the history
ℹ️ fix
  • Loading branch information
securisecctf committed Nov 30, 2019
1 parent a8d840d commit 24475ae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions chepy/modules/forensics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import logging
import pathlib
import shutil
import tempfile
import pprint

Expand Down Expand Up @@ -54,7 +53,7 @@ def get_mime(self, set_state: bool = False):
logging.info(mimetype)
if set_state:
self.state = mimetype
shutil.rmtree(filename)
# pathlib.Path(filename).unlink()
return self

@ChepyDecorators.call_stack
Expand All @@ -81,7 +80,7 @@ def get_metadata(self, set_state: bool = False):
self.state = meta
else: # pragma: no cover
logging.info(pprint.pformat(meta))
shutil.rmtree(filename)
# pathlib.Path(filename).unlink()
return self

@ChepyDecorators.call_stack
Expand All @@ -103,7 +102,7 @@ def embedded_files(self, extract_path: str = None):
subfile.setOutput(extract_path)
subfile.loadParsers()
subfile.main()
shutil.rmtree(filename)
# pathlib.Path(filename).unlink()
return self

@ChepyDecorators.call_stack
Expand All @@ -118,5 +117,5 @@ def get_exif(self): # pragma: no cover
exif = et.get_metadata(filename)
if exif:
self.state = exif
shutil.rmtree(filename)
# pathlib.Path(filename).unlink()
return self

0 comments on commit 24475ae

Please sign in to comment.