I don’t know if this is a valid question but is there a documentation out there describing each property from the result of fs.stat() in nodejs. Because I am trying to find the meaning of each of those properties but no luck.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Comments in the node_file.cc source that builds the
statobject (BuildsStatsObjectfunction) may conveniently help you out with this. In summary for reference:dev: ID of device containing fileino: inode numbermode: protectionnlink: number of hard linksuid: user ID of ownergid: group ID of ownerrdev: device ID (if special file)size: total size, in bytesatime– time of last accessmtime– time of last modificationctime– time of last status changeand if POSIX
blksize: blocksize for filesystem I/Oblocks: number of blocks allocated