摘要: var stat = fs.statSync(filename);console.log(stat)会返回类似{ dev: 0, ino: 0, mode: 33206, nlink: 1, uid: 0, gid: 0, rdev: 0, size: 1747, atime: Tue, 03 Jan 2012 13:35:51 GMT, mtime: Tue, 03 Jan 2012 13:35:51 GMT, ctime: Wed, 21 Dec 2011 14:31:59 GMT }的对象,其中atime,mtime,ctime就分别代表了访问时间,修改时间以及创建时... 阅读全文
posted @ 2012-01-04 21:54 雪霁霜飞 阅读(14160) 评论(0) 推荐(0) 编辑