提交 e2a6e608 编写于 作者: L lilinsen

修改缓存文件

上级 0ea0feb0
......@@ -12,3 +12,5 @@ package-lock.json
yarn.lock
docshashCache.text
srchashCache.text
localsrc.cache
localdocs.cache
......@@ -140,7 +140,10 @@ function fileReadStar(filedir,callback){
}
/**
* 判断是否位md文件 并进行操作
* 判断文件是否有改动
* @src {string} 打开的文件目录
* @hasobj {obj} hash对象
* @callback {fn} 回调函数
*/
function ismd(src,hasobj,callback){
//判断文件类型是否是md文件
......@@ -180,7 +183,7 @@ function ismd(src,hasobj,callback){
*/
function checkIsexists (path,callback){
let pathFileName = path.replace(/[^a-zA-Z]/g,'');
let cacheName = './'+pathFileName+'hashCache.text';
let cacheName = './local'+pathFileName+'.cache';
fs.exists(cacheName, res=>{
console.log(res)
if(!res){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册