Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > FileSystem > getRealPath

FileSystem.getRealPath() method

Follows a link to its destination and returns the absolute path to the final target of the link. Behind the scenes it uses fs.realpathSync().

Signature:

static getRealPath(linkPath: string): string;

Parameters

ParameterTypeDescription
linkPathstringThe path to the link.

Returns:

string