githubEdit

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.

Method Signature

ExpandPath(path=[string])

Arguments

Argument
Type
Required
Description
Default

path

string

true

Relative or absolute directory reference or filename, to convert to an absolute path. Can include forward or backward slashes.

Examples

Expand the current path

Run Examplearrow-up-right

expandPath( "./" );

Result: /Users/scottsteinbeck/Downloads/BL-1468/

Expand the parent folder path

Run Examplearrow-up-right

Result: /Users/scottsteinbeck/Downloads/BL-1468/

Expand the path to a subfolder

Run Examplearrow-up-right

Result: /Users/scottsteinbeck/Downloads/BL-1468/path/to/subfolder

Last updated

Was this helpful?