#85 made instance directory configurable in config.json

This commit is contained in:
Danielv123 committed 2018-05-04 17:50:20 +02:00
1 parent a0e98ecb00
commit c02bb6d58f
4 files changed
+18 -16

No files matched your search

+2 -1
View File
@@ -1,10 +1,11 @@
const fileOps = require("_app/fileOps");
const config = require("./../config");
module.exports = {
sync: function(){
let instances;
try {
instances = fileOps.getDirectoriesSync("./instances/");
instances = fileOps.getDirectoriesSync(config.instanceDirectory);
} catch (e) {
// there are no instances created yet, probably missing the folder
instances = [];