added linear recursion
This commit is contained in:
@@ -105,16 +105,23 @@ class Refit_Create:
|
||||
logger.debug(
|
||||
f"FUNC: create_recursive(beginning) MSG: entered function with following arguments: recursive='{recursive}' name='{name}' input='{input}' n='{n}'"
|
||||
)
|
||||
librefit.create_recursive_folders(
|
||||
input_path=input,
|
||||
target_depth=recursive[0],
|
||||
current_depth=0,
|
||||
width=recursive[1],
|
||||
# librefit.create_recursive_folders(
|
||||
# input_path=input,
|
||||
# target_depth=recursive[0],
|
||||
# current_depth=0,
|
||||
# width=recursive[1],
|
||||
# )
|
||||
|
||||
librefit.create_parallel_directories(
|
||||
input_path=input, target_depth=recursive[0], width=recursive[1]
|
||||
)
|
||||
|
||||
def input_validator(self):
|
||||
"""Function, which checks if the user input is valid"""
|
||||
|
||||
# TODO: make the input validator pass without the n argument
|
||||
# when recursive mode is active
|
||||
|
||||
# Check working directory
|
||||
if self.input is None:
|
||||
self.input = librefit.get_current_path(self.input)
|
||||
|
||||
Reference in New Issue
Block a user