1.fs.stat(path[, options], callback) fs.stat(path,function(error,stats){ console.log(stats); // 打印stats对象 查看其属性 console.log(stats.