Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/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): FileSystemStats;

Parameters

ParameterTypeDescription
pathstringThe absolute or relative path to the filesystem object.

Returns:

FileSystemStats