Skip to content

FileFilterExclude / FileFilterInclude #24

@weggetor

Description

@weggetor

Hi folks,

I needed a functionality to filter a set of files (FilePathCollection) given by an array of wildcard path strings, e.g:

string[] filter= new string[] {
            @"**/*.gif",
            @"**/*.jpg",
            @"**/*.png"
        };

Specifically I needed the possibility to get all the files that match the filter criteria (IncludeFiles) and on the opposite to get all the files that do NOT match the filter criteria (ExcludeFiles).

Unfortunately I'm not familiar with pull requests - but if any one is interested feel free to include the attached methods in this library!

FileFilter.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions