When using the "includeFilter" option, it's impossible to filter folders.
Checking the code (
|
if ((entry.stat.isFile() && options.includeFilter) && (!match(path, options.includeFilter))) { |
) shows that "includeFilter" apply only on files and not folders.
Could it be possible to replace the line
if ((entry.stat.isFile() && options.includeFilter) && (!match(path, options.includeFilter))) {
by
if (options.includeFilter && !match(path, options.includeFilter)) {
It then will match what is done for the excludeFilter.
What do you think about it ?
Thanks in advance.
When using the "includeFilter" option, it's impossible to filter folders.
Checking the code (
dir-compare/src/Entry/EntryBuilder.ts
Line 110 in 484b59b
Could it be possible to replace the line
if ((entry.stat.isFile() && options.includeFilter) && (!match(path, options.includeFilter))) {
by
if (options.includeFilter && !match(path, options.includeFilter)) {
It then will match what is done for the excludeFilter.
What do you think about it ?
Thanks in advance.