2014-11-18 4 views
1

Итак, я начинаю делать небольшой виджет, который следит за вашей файловой системой, и я использую модуль просмотра npm, но многие данные скрыты, и я надеялся, что кто-то может дать мне хорошее описание каждого из параметров, возвращаемых модулем, который я использую, поскольку документации о нем нет.Данные файловой системы

{ 
    "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" 
} 

ответ

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 
} 

Надеется, что это помогает!

Смежные вопросы