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
Parameter | Type | Description |
---|---|---|
linkPath | string | The path to the link. |
Returns:
string