Skip to content

Commit

Permalink
ignore .ds_store files
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl Rowland committed Sep 22, 2016
1 parent 1dd41a9 commit 8960697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var addRouteFiles = function(basePath, directory) {
fs.readdirSync(directory).forEach(function(file) {
if (fs.statSync(directory + "/" + file).isDirectory()) {
addRouteFiles(basePath, directory + "/" + file);
} else {
} else if (file.toLowerCase() != ".ds_store") {
var routeKey = directory.substr(basePath.length);
routeMap[routeKey] = require(directory + "/" + file);
}
Expand Down

0 comments on commit 8960697

Please sign in to comment.