mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
fixed #65
This commit is contained in:
1 parent
9496fa70e0
commit
f522f19cb5
3 files changed
+24
-9
No files matched your search
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user