参数说明
exists(path, callback)
path 被检查的 目录 或 文件 路径
callback( 回调函数
bol 是否存在,true/false
)
示例
var fs = require("fs");
fs.exists("./liboke/test.txt", function(bol){
if(bol) console.log("存在");
else console.log("不存在");
});