Home > @microsoft/node-core-library > FileSystem > getLinkStatistics

FileSystem.getLinkStatistics() method

Gets the statistics of a filesystem object. Does NOT follow the link to its target. Behind the scenes it uses fs.lstatSync().

Signature:

static getLinkStatistics(path: string): fs.Stats;

Parameters

Parameter Type Description
path string The absolute or relative path to the filesystem object.

Returns:

fs.Stats