Commit 43c5e723 by devttys0 Committed by GitHub

Merge pull request #237 from Kriskras99/patch-1

Create extraction dir if it does not exists
parents f0136375 37f817ff
...@@ -105,6 +105,8 @@ class Extractor(Module): ...@@ -105,6 +105,8 @@ class Extractor(Module):
# The input file specific output directory path (default to CWD) # The input file specific output directory path (default to CWD)
if self.base_directory: if self.base_directory:
self.directory = os.path.realpath(self.base_directory) self.directory = os.path.realpath(self.base_directory)
if not os.path.exists(self.directory):
os.makedirs(self.directory)
else: else:
self.directory = os.getcwd() self.directory = os.getcwd()
# Key value pairs of input file path and output extraction path # Key value pairs of input file path and output extraction path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment