Commit 5a375cae authored by nanahira's avatar nanahira

fix deck dash

parent 77ec7dae
...@@ -100,14 +100,6 @@ var readDeck = function(deck_name, deck_full_path) { ...@@ -100,14 +100,6 @@ var readDeck = function(deck_name, deck_full_path) {
//读取指定文件夹中所有卡组 //读取指定文件夹中所有卡组
var getDecks = function(callback) { var getDecks = function(callback) {
var decks=[]; var decks=[];
var decks_list = fs.readdirSync(config.deck_path);
for (var k in decks_list) {
var deck_name = decks_list[k];
if (_.endsWith(deck_name, ".ydk")) {
var deck = readDeck(deck_name, config.deck_path+deck_name);
decks.push(deck);
}
}
_async.auto({ _async.auto({
readDir: (done) => { readDir: (done) => {
fs.readdir(config.deck_path, done); fs.readdir(config.deck_path, done);
......
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