added filemode
This commit is contained in:
@@ -23,6 +23,7 @@ class Refit_Create:
|
||||
self.name = args.name
|
||||
self.input = args.input
|
||||
self.n = args.n
|
||||
self.filemode = args.filemode
|
||||
|
||||
def create_input_valid(self):
|
||||
"""Checks if the input is valid and returns either True or
|
||||
@@ -72,7 +73,10 @@ class Refit_Create:
|
||||
if self.create_input_valid():
|
||||
logger.debug("valid input -> continue")
|
||||
|
||||
self.create_n_folders(self.n, self.input, self.name)
|
||||
if self.filemode:
|
||||
logger.debug("filemode active")
|
||||
else:
|
||||
self.create_n_folders(self.n, self.input, self.name)
|
||||
logger.debug(
|
||||
"End of run---------------------------------------------------------"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user