diff --git a/index.js b/index.js index 45c5825..aed50c2 100644 --- a/index.js +++ b/index.js @@ -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); } });