Skip to content

Commit

Permalink
Ignore dotfiles.
Browse files Browse the repository at this point in the history
technetium-cfx committed Oct 12, 2020
1 parent 9568054 commit daf37df
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -30,13 +30,8 @@ const workers = workerFarm(require.resolve('./worker'));

let ret = 0;

recursive(process.argv[2], (err, files) => {
recursive(process.argv[2], ['.*', '!*.md','README.md'], (err, files) => {
for (const file of files) {
if (!file.endsWith('.md') || file.endsWith('README.md')) {
++ret;
continue;
}

workers(file, (err, nativeData) => {
if (err) {
console.log(err);
@@ -72,4 +67,4 @@ recursive(process.argv[2], (err, files) => {

//const native = nativeData.contents;

//console.log(JSON.stringify(native, null, 4));
//console.log(JSON.stringify(native, null, 4));

0 comments on commit daf37df

Please sign in to comment.