Files
factorio-clusterio/lib/getInstances.js
T
2017-12-09 14:05:17 +01:00

14 lines
297 B
JavaScript

const fileOps = require("./fileOps.js");
module.exports = {
sync: function(){
let instances;
try {
instances = fileOps.getDirectoriesSync("./instances/");
} catch (e) {
// there are no instances created yet, probably missing the folder
instances = [];
}
return instances;
}
}