added linear recursion

This commit is contained in:
2025-10-04 19:19:22 +02:00
parent c1e76b660a
commit e243f5f379

View File

@@ -105,16 +105,23 @@ class Refit_Create:
logger.debug( logger.debug(
f"FUNC: create_recursive(beginning) MSG: entered function with following arguments: recursive='{recursive}' name='{name}' input='{input}' n='{n}'" f"FUNC: create_recursive(beginning) MSG: entered function with following arguments: recursive='{recursive}' name='{name}' input='{input}' n='{n}'"
) )
librefit.create_recursive_folders( # librefit.create_recursive_folders(
input_path=input, # input_path=input,
target_depth=recursive[0], # target_depth=recursive[0],
current_depth=0, # current_depth=0,
width=recursive[1], # width=recursive[1],
# )
librefit.create_parallel_directories(
input_path=input, target_depth=recursive[0], width=recursive[1]
) )
def input_validator(self): def input_validator(self):
"""Function, which checks if the user input is valid""" """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 # Check working directory
if self.input is None: if self.input is None:
self.input = librefit.get_current_path(self.input) self.input = librefit.get_current_path(self.input)