Hi,
I needed exclude patterns at the file level.
I modified cr and wrapped the queue.push(p); on line 163 with the same check as done for the directory. ie -checked for !(cli.excludepattern && cli.excludepattern.test(p)) before adding the file to the queue.