Commit 41c13c16 authored by Medicean's avatar Medicean

fix encoder manager init bug

parent 107a4e27
......@@ -127,8 +127,11 @@ antSword['language'] = require('./language/');
// 加载编码
antSword['encoders'] = (function(){
var encoders = {asp:[],aspx:[],php:[],custom:[]};
let custom_path = path.join(process.env.AS_WORKDIR,'antData/encoder');
// 初始化
!fs.existsSync(custom_path) ? fs.mkdirSync(custom_path) : null;
// custom
let es = fs.readdirSync(path.join(process.env.AS_WORKDIR,'antData/encoder'));
let es = fs.readdirSync(custom_path);
if(es){
es.map((_)=>{
let farr = _.split("#");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment