system.kanoa.utilities.formatPath
Description
Takes a string 'path' and replaces the split key with the delimiter (kanoaCore).Syntax
formatPath(path, paramsDict)- path (String) - The input path string, e.g., 'Kanoa Industries\\Adelaide Hills'.
- paramsDict (Dictionary) - A dictionary containing optional parameters: 'drop', 'splitKey', 'delimiter', 'locale'.
- newPath (String) - The formatted path string.
Code Example
# Example Usage:
formatted_path = system.kanoa.utilities.formatPath('Kanoa Industries\\Adelaide Hills', {'drop': 'Kanoa Industries', 'splitKey': '\\', 'delimiter': ' > ', 'locale': None})