Remap: Refactor scripts #177
@ -155,14 +155,13 @@ def update_json_for_directory(directory_path, json_file_path):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print("Welcome to 'remap' a tool to assist in a re-organization of folders")
|
|
||||||
if not get_variable_file():
|
if not get_variable_file():
|
||||||
print("Starting new remap session")
|
print("Starting new remap session")
|
||||||
variables = set_variable_file()
|
variables = set_variable_file()
|
||||||
print(f"Generating map for directory '{variables[CRAWL_DIR_KEY]}'")
|
print(f"Generating map for directory '{variables[CRAWL_DIR_KEY]}'")
|
||||||
generate_json_for_directory(variables[CRAWL_DIR_KEY], variables[JSON_FILE_KEY])
|
generate_json_for_directory(variables[CRAWL_DIR_KEY], variables[JSON_FILE_KEY])
|
||||||
print(
|
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:
|
else:
|
||||||
@ -186,4 +185,5 @@ def main():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
print("Welcome to 'remap' a tool to assist in a re-organization of folders")
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user