GetCanonicalPath()

Returns the canonical pathname string based on the given string.

GetCanonicalPath( path=string );

Returns: String

Argument Description
path
string, required

path to a component or component itself

Examples

base_path = getBaseTemplatePath();
canonical = getCanonicalPath(base_path);
dump(canonical); // /home/webs/sbx/lucee5/getremote.cfm

See also