暂时性不再判断atom是否已移除文库项目

This commit is contained in:
TevinLi 2016-10-28 21:18:40 +08:00
parent 0c8b54dfa8
commit 39f7503db5
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ module.exports = {
continue;
}
//如果atom已经移除此项目弃用
var pathUseful = false;
/*var pathUseful = false;
for (var k = 0; k < atomProjects.length; k++) {
if (atomProjects[k].replace(/\\/g, '/') + '/library/' == path) {
pathUseful = true;
@ -110,14 +110,14 @@ module.exports = {
}
if (!pathUseful) {
continue;
}
}*/
//有用路径
list2.push(path);
stepCallback && stepCallback(list[i]);
}
return list2;
},
//判断一个文件夹是否为文库项目
//判断一个文件夹是否为amWiki文库项目
isAmWiki: function (path) {
path = path.indexOf('library') < 0 ? path : path.split('library')[0];
var states = [