【问题标题】:File System data文件系统数据
【发布时间】:2015-01-15 03:59:24
【问题描述】:

所以我开始制作一个小部件来监视你的文件系统的变化,我正在使用 npm 的 watch 模块,但是很多数据有点模糊,我希望有人能给我一个很好的描述我正在使用的模块返回的每个参数,因为没有太多关于它的文档。

{
    "dev": 16777223,
    "mode": 33204,
    "nlink": 1,
    "uid": 501,
    "gid": 20,
    "rdev": 0,
    "blksize": 4096,
    "ino": 23354217,
    "size": 4038,
    "blocks": 8,
    "atime": "2014-11-05T09:08:32.000Z",
    "mtime": "2014-11-05T09:08:51.000Z",
    "ctime": "2014-11-05T06:52:48.000Z",
    "birthtime": "2014-11-05T06:52:47.000Z"
}

【问题讨论】:

    标签: json node.js filesystems npm


    【解决方案1】:
    {
      "dev": 16777223,  //The device number containing the file.
      "mode": 33204,    //The mode of the file. This is an integer which incorporates file type information and file permission bits. See also stat:type and stat:perms below.
      "nlink": 1,       //The number of hard links to the file.
      "uid": 501,       //The user ID of the file’s owner.
      "gid": 20,        //The group ID of the file.
      "rdev": 0,        //Device ID; this entry is defined only for character or block special files.
      "blksize": 4096,  //The optimal block size for reading or writing the file, in bytes.
      "ino": 23354217,  //The file serial number, which distinguishes this file from all other files on the same device.
      "size": 4038,     //The size of a regular file in bytes.
      "blocks": 8,      //The amount of disk space that the file occupies measured in units of 512 byte blocks. 
      "atime": "2014-11-05T09:08:32.000Z", //The last access time for the file.
      "mtime": "2014-11-05T09:08:51.000Z", //The last modification time for the file.
      "ctime": "2014-11-05T06:52:48.000Z", //The last modification time for the attributes of the file.
      "birthtime": "2014-11-05T06:52:47.000Z" //The date where the file was created
    }
    

    希望对你有帮助!

    【讨论】:

      猜你喜欢
      • 2019-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多