gpt4 book ai didi

javascript - dev key 在 fs.Stat 和 nodejs 返回的对象中代表什么

转载 作者:行者123 更新时间:2023-12-01 03:11:50 24 4
gpt4 key购买 nike

下面是我所指的对象 - 我试图弄清楚 dev 键的含义(第一个键值对)。我是从以下链接阅读此内容:https://nodejs.org/api/fs.html

Stats {
dev: 2114,
ino: 48064969,
mode: 33188,
nlink: 1,
uid: 85,
gid: 100,
rdev: 0,
size: 527,
blksize: 4096,
blocks: 8,
atimeMs: 1318289051000.1,
mtimeMs: 1318289051000.1,
ctimeMs: 1318289051000.1,
birthtimeMs: 1318289051000.1,
atime: Mon, 10 Oct 2011 23:24:11 GMT,
mtime: Mon, 10 Oct 2011 23:24:11 GMT,
ctime: Mon, 10 Oct 2011 23:24:11 GMT,
birthtime: Mon, 10 Oct 2011 23:24:11 GMT
}

最佳答案

fs.stat 是一个异步 stat(2)打电话。

基于上述man page :

st_dev
This field describes the device on which this file resides.
(The major(3) and minor(3) macros may be useful to decompose the device ID in this field.)

关于javascript - dev key 在 fs.Stat 和 nodejs 返回的对象中代表什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45776751/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com