Skip to main content

system.kanoa.utilities.formatPath

This function requires KanoaCore module

Description

Takes a string 'path' and replaces the split key with the delimiter (kanoaCore).

Syntax

formatPath(path, paramsDict)
  • Parameters
      path (String) - The input path string, e.g., 'Kanoa Industries\\Adelaide Hills'.
      paramsDict (Dictionary) - A dictionary containing optional parameters: 'drop', 'splitKey', 'delimiter', 'locale'.
  • Returns
      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})