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
Parameter | Type | Description |
---|---|---|
path | string | The absolute or relative path to the filesystem object. |
Returns: