Browse Source

Fixed #15

tags/v0.1.2
Big Bad Waffle 7 years ago
parent
commit
62cc67e9d0
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      src/server/misc/fileLister.js

+ 7
- 3
src/server/misc/fileLister.js View File

@@ -13,9 +13,13 @@ define([
},

getFolderList: function(path) {
return fs.readdirSync(path).filter(function(file) {
return fs.statSync(fsPath.join(path, file)).isDirectory();
});
try {
return fs.readdirSync(path).filter(function(file) {
return fs.statSync(fsPath.join(path, file)).isDirectory();
});
} catch (e) {
return [];
}
}
};
});

Loading…
Cancel
Save