I am creating a FileFinder class where you can perform a search as follows:
var fileFinder = new FileFinder(
new string[]
{
"C:\\MyFolder1",
"C:\\MyFolder2"
},
new string[]
{
"*.txt",
"*.doc"
} );
fileFinder.FileFound += new EventHandler<FileFinderEventArgs>(FileFinder_FileFound);
DoSearch();
If I executed this code, it FileFinder_FileFoundwill be called every time a file or is found in C:\\MyFolder1and its subfolders, or C:\\MyFolder2its subfolders .*.txt*.doc
The Sot class looks at subfolders, but I also want it to look at any zip files that it came across as if they were folders. How can i do this? It would be preferable that temporary files are not created ...
EDIT Forgot to mention that this is not a personal project; Its for commercial use I work with my company.
source
share