Skip to main content

system.kanoa.utilities.formatPath(path, paramsDict)

Takes a string 'path' and replaces the splitKey with the delimiter. By default the splitKey is set to '\' and the delimiter is set to ' > '


Parameters

path String: i.e. 'Kanoa Industries\Adelaide Hills'
paramsDict Dictionary: Keys are not required. Can be an empty dictionary

- delimiterStringCharacter(s) to replace the splitKey with
- dropStringi.e. 'Kanoa Industries'.
- localeStringCan be used to translate the string path e.g. 'en US'
- splitKeyStringCharacter(s) to split the string path by.

Returns

newPath String


Example

stringPath = 'Kanoa Industries\Adelaide Hills'
paramsDict = {}
print system.kanoa.utilities.formatPath(stringPath, paramsDict)
> Kanoa Industries > Adelaide Hills