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

expandPath 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")

Fork me on GitHub