haakonn / incluse

A Scala library to test if a path (e.g., a filesystem path) is accepted by some inclusion/exclusion policy for a hierarchical namespace structure (such as a filesystem).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incluse is a library to test if a candidate path is
covered/included/accepted by a given policy for inclusion and
exclusion in a hierarchical namespace system.

The most typical application is in filesystems: Your application
operates on files conforming to given rules for which files should be
considered and which should not. Think rsync. Incluse can do the
matching for you.

Incluse supports any combination of simple named nodes, wildcards that
match any single node, and recursive wildcards that non-greedily
matches multiple nodes.

Incluse is extensible in its format support. A sample format is
included for filesystem path policies.

About

A Scala library to test if a path (e.g., a filesystem path) is accepted by some inclusion/exclusion policy for a hierarchical namespace structure (such as a filesystem).

License:MIT License


Languages

Language:Scala 100.0%