Skip to content

Latest commit

 

History

History
60 lines (32 loc) · 1.07 KB

File metadata and controls

60 lines (32 loc) · 1.07 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

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:

FileSystemStats