温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/fs/StatsFs
点击访问原文链接

Node fs.StatsFs class | API Reference | Bun

Node fs.StatsFs class | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:fs/StatsFsPbavailPbfreePblocksPbsizeCoconstructorPffreePfilesPtype

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:fs/StatsFsPbavailPbfreePblocksPbsizeCoconstructorPffreePfilesPtype

class

fs.StatsFsclass StatsFs

Provides information about a mounted file system.

Objects returned from statfs and its synchronous counterpart are of this type. If bigint in the options passed to those methods is true, the numeric values will be bigint instead of number.

StatFs {
type: 1397114950,
bsize: 4096,
blocks: 121938943,
bfree: 61058895,
bavail: 61058895,
files: 999,
ffree: 1000000
}

bigint version:

StatFs {
type: 1397114950n,
bsize: 4096n,
blocks: 121938943n,
bfree: 61058895n,
bavail: 61058895n,
files: 999n,
ffree: 1000000n
}
bavail: number

Available blocks for unprivileged users

bfree: number

Free blocks in file system.

blocks: number

Total data blocks in file system.

bsize: number

Optimal transfer block size.

ffree: number

Free file nodes in file system.

files: number

Total file nodes in file system.

type: number

Type of file system.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node fs.StatsFs class | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    Provides information about a mounted file system. Objects returned from statfs and its synchronous counterpart are of this type. If `bigint` in the `options` passed to those methods is `true`, the numeric values will be `bigint` instead of `number`. ```console StatFs { type: 1397114950, bsize: 4096, blocks: 121938943, bfree: 61058895, bavail: 61058895, files: 999, ffree: 1000000 } ``` `bigint` version: ```console StatFs { type: 1397114950n, bsize: 4096n, blocks: 121938943n, bfree: 61058895n, bavail: 61058895n, files: 999n, ffree: 1000000n } ```