Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can't use includeFilter on folders #67

@RemyVULTAGGIO

Description

@RemyVULTAGGIO

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions