GetCanonicalPath()
Returns the canonical pathname string based on the given string.
GetCanonicalPath( path=string );
Returns: String
| Argument | Description |
|---|---|
|
path
string,
required
|
edit
path to a component or component itself |
Examples
editbase_path = getBaseTemplatePath();
canonical = getCanonicalPath(base_path);
dump(canonical); // /home/webs/sbx/lucee5/getremote.cfm
See also
- File handling
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)