Commit 37f817ff by Kriskras99 Committed by GitHub

Create extraction dir if it does not exists

parent f0136375
...@@ -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