Update ospec to ignore hidden directories and files

This commit is contained in:
Paul D. Fernhout 2017-05-20 17:09:32 +00:00
parent dfcbc8e2b3
commit 95addffda6

View file

@ -17,6 +17,7 @@ function traverseDirectory(pathname, callback) {
var promises = []
for (var i = 0; i < pathnames.length; i++) {
if (pathnames[i] === "node_modules") continue
if (pathnames[i][0] === ".") continue
pathnames[i] = path.join(pathname, pathnames[i])
promises.push(traverseDirectory(pathnames[i], callback))
}