diff --git a/src/techui_builder/builder.py b/src/techui_builder/builder.py index 7b849c6..093cb27 100644 --- a/src/techui_builder/builder.py +++ b/src/techui_builder/builder.py @@ -283,7 +283,7 @@ def _get_display_name( return display_name def _next_file_crawl( - file_path: Path, + file_path_text: str, destination_path: Path, name_element: str | None, component_name: str | None, @@ -291,7 +291,7 @@ def _next_file_crawl( macro_dictionary: dict[str, Any], ): # TODO: misleading var name? - next_file_path = destination_path.joinpath(file_path) + next_file_path = destination_path.joinpath(file_path_text) # Crawl the next file if next_file_path.is_file(): @@ -304,9 +304,11 @@ def _next_file_crawl( ) else: child_node = JsonMap( - str(file_path), + file_path_text, display_name, - exists=("IOC" in macro_dictionary or ("https:/" in str(file_path))), + exists=( + "IOC" in macro_dictionary or ("https://" in file_path_text) + ), ) return child_node @@ -393,7 +395,7 @@ def _next_file_crawl( ) child_node = _next_file_crawl( - file_path, + file_text, dest_path, name_elem, current_component_name, @@ -427,7 +429,7 @@ def _next_file_crawl( ) child_node = _next_file_crawl( - file_path, + file_text, dest_path, name_elem, current_component_name,