ShadowKnightMK4 / OdinSearch

Search thru local computer files and feed matching output to a class that consumes it.
MIT License
1 stars 0 forks source link

Add lazy way to SearchTarget to target any accessible file system item. #28

Closed ShadowKnightMK4 closed 4 weeks ago

ShadowKnightMK4 commented 1 month ago

Add a routine or const like int.Max to SearchTarget that lets the user specify that they don't care at all, just feed found files to the coms base.

Example in Theory.

var Anyfile = SearchTarget.AllFiles();

ShadowKnightMK4 commented 4 weeks ago

Done.

Ripped the /Anyfile flag settings from the console app to be the settings with SearchTarget.AllFiles as a static read only private variable exposed by a get property.

Example below.

OdinSearchHandler.AddSearchTarget(   SearchTarget.AllFiles   );

A unit test has been added also to test if the static construct that sets this is invoked and assigns it ok.

SearchTarget_AnyFileTest_TriggerAndCompare