add_path_to_map
No overview available.
def add_path_to_map(
path_map: dict,
file_path: string,
value: any
) - > dict
Adds a file or directory path to a mapping dictionary, ensuring that the path is normalized and associated with its corresponding metadata or identifier.
Parameters
| Name | Type | Description |
|---|---|---|
| path_map | dict | The existing dictionary where path-to-value mappings are stored and updated. |
| file_path | string | The filesystem path string to be normalized and added to the map. |
| value | any | The metadata, identifier, or object to associate with the specified file path. |
Returns
| Type | Description |
|---|---|
dict | The updated mapping dictionary containing the newly added path and its associated value. |