Skip to content

Commit

Permalink
check directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Lax committed May 12, 2020
1 parent 08d73e0 commit 46fc996
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 @@ -20,7 +20,7 @@ function printFiles(err, files) {
files.forEach(function (file) {
// Do whatever you want to do with the file
ioUtil.isDirectory(file).then(r => {
if (r && file !== ".git" & file !== ".github") {
if (r && !file.includes('.') && file !== "node_modules") {
fs.readdir(path.join(__dirname, file), printFiles);
}
});
Expand Down

0 comments on commit 46fc996

Please sign in to comment.