Remap: Refactor scripts #177

Merged
Nick Alberelli merged 17 commits from :feature/refactor-remap-script into main 2023-12-07 16:17:27 +01:00
Showing only changes of commit 2c881ccf42 - Show all commits

View File

@ -155,14 +155,13 @@ def update_json_for_directory(directory_path, json_file_path):
def main():
print("Welcome to 'remap' a tool to assist in a re-organization of folders")
if not get_variable_file():
print("Starting new remap session")
variables = set_variable_file()
print(f"Generating map for directory '{variables[CRAWL_DIR_KEY]}'")
generate_json_for_directory(variables[CRAWL_DIR_KEY], variables[JSON_FILE_KEY])
print(
f"Directory '{variables[CRAWL_DIR_KEY]}' can now be re-organized before updating the map"
f"Directory '{variables[CRAWL_DIR_KEY]}' can now be re-organized before re-running this tool to update it's map"
)
else:
@ -186,4 +185,5 @@ def main():
if __name__ == "__main__":
print("Welcome to 'remap' a tool to assist in a re-organization of folders")
main()