Browse Source

Merge branch 'bug-issue-15' into 'staging'

Fixed #15

See merge request !11
tags/v0.1.2
Big Bad Waffle 7 years ago
parent
commit
d9ab424dcf
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