Rush StackShopBlogEvents
Skip to main content

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

FileSystem.getStatistics() method

Gets the statistics for a particular filesystem object. If the path is a link, this function follows the link and returns statistics about the link target. Behind the scenes it uses fs.statSync().

Signature:

static getStatistics(path: string): FileSystemStats;

Parameters

ParameterTypeDescription
pathstringThe absolute or relative path to the filesystem object.

Returns:

FileSystemStats