Update ospec to ignore hidden directories and files
This commit is contained in:
parent
dfcbc8e2b3
commit
95addffda6
1 changed files with 1 additions and 0 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue