Merge pull request #1855 from pdfernhout/patch-2

Update ospec to ignore hidden directories and files
This commit is contained in:
Isiah Meadows 2017-05-21 02:42:10 -04:00 committed by GitHub
commit 7ee4e002f3

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))
}