Skip to content

Commit abfebce

Browse files
committed
Ignore folders starting with '.'
1 parent 20a588c commit abfebce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cloud9.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (config, db) {
1010
constructor(executable,wsd) {
1111
this._executable = path.resolve(executable);
1212
this._wsd = path.resolve(wsd);
13-
this._workspaces = fs.readdirSync(this._wsd);
13+
this._workspaces = fs.readdirSync(this._wsd).filter(name => !name.startsWith('.'));
1414
this._children = {};
1515
}
1616

routes/admin/reloadws.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = function (app, config, db, proxy, c9) {
22
const fs = require('fs');
33
return {
44
all: (req,res) => {
5-
c9._workspaces = fs.readdirSync(c9._wsd);
5+
c9._workspaces = fs.readdirSync(c9._wsd).filter(name => !name.startsWith('.'));
66
res.redirect('back');
77
}
88
}

0 commit comments

Comments
 (0)