Interface IGenericFileFilter

Assembly: redb.Route.GenericFile.dll

A filter the route author writes in code and names from the URI (filter=#myFilter),
resolved from the route registry — Apache Camel's GenericFileFilter. Use it when the
decision needs code: a lookup, a partner table, a calendar. For a condition that fits in a
string, filterFile and filterDirectory are simpler, and for a path pattern
antInclude/antExclude are simpler still.

public interface IGenericFileFilter

Methods

Accept(GenericFileInfo)

Decides whether a polled file is taken. Called after the cheap filters (name patterns, path

bool Accept(GenericFileInfo file)

AcceptDirectory(string, string)

Decides whether a subdirectory is walked into at all, while the listing is still running —

bool AcceptDirectory(string fullPath, string relativePath)