expandPath

Creates an absolute, platform-appropriate path that is equivalent to the value of 'path', appended to the base path. This function (despite its name) can accept an absolute or relative path in the 'path' attribute.

expandPath(path) → returns string

Argument Reference

path string
Required

Relative or absolute directory reference or filename, within the current directory, (.\ and ..\) to convert to an absolute path. Can include forward or backward slashes.

Examples
Sample code invoking the expandPath function

expandPath("./")

expandPath("../")

expandPath("path/to/subfolder")

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub