util.inspect(stats) 하면 아래와 같은 정보가 보여집니다.
{ dev: 2114,
ino: 48064969,
mode: 33188,
nlink: 1,
uid: 85,
gid: 100,
rdev: 0,
size: 527,
blksize: 4096,
blocks: 8,
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 }
여기서 atime, mtime, ctime의 나타내는 것은 유닉스시스템에서 사용되는 시간정보입니다.
물론 윈도우 운영체제에서도 파일의 내부정보로 가지고 있는 것으로 보입니다.
File and directory timestamps in Unix
Three times tracked for each file in Unix are these:
- access time - atime
- change time – ctime
- modify time – mtime
atime – File Access Time
Access time shows the last time the data from a file was accessed – read by one of the Unix processes directly or through commands and scripts.
ctime – File Change Time
ctime also changes when you change file's ownership or access permissions. It will also naturally highlight the last time file had its contents updated.
mtime – File Modify Time
Last modification time shows time of the last change to file's contents. It does not change with owner or permission changes, and is therefore used for tracking the actual changes to data of the file itself.