tchmi_path
[ Function ]
function tchmi_path(path: string): string;
Restores / standardizes a path.
Replaces all backslashes with normal slashes, replaces multiple slashes with a single slash, removes leading slashes.
Parameter
Name | Type | Description |
---|---|---|
path | any variable |
Return value
Type | Description |
---|---|
Standardized value |
Available from 1.8 |
Sample - JavaScript
TcHmi.Log.debug(tchmi_path('\images///pumps\\pump.png'));
// => 'images/pumps/pump.png'