Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Do not show files that start with . in project tree
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Mar 31, 2016
1 parent 2d1e5b9 commit 3aa8ba5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ module.exports = function () {
fs.readdir(_p, function(err, list) {
if (list) {
for (var i = list.length - 1; i >= 0; i--) {
resp.push(processNode(_p, list[i]));
if (list[i].charAt(0) !== ".") {
resp.push(processNode(_p, list[i]));
}
}
}
res.json(resp);
Expand Down

0 comments on commit 3aa8ba5

Please sign in to comment.