cfdocs

getCanonicalPath

Returns the canonical path of the input path. If a directory a trailing slash is used on Lucee, but not on ACF.

getCanonicalPath(path)
returns string

Argument Reference

Name Type Required Default Description
path string Yes    

getCanonicalPath Example

Returns the canonical path of the input path.

writeOutput( getCanonicalPath(getBaseTemplatePath()) );