C# Class SecureDelete.FileSearch.FileSearcher

Provides support for searching files in directories and their subdirectories. Search can be performed asynchronously.
Exibir arquivo Open project: gratianlup/SecureDelete Class Usage Examples

Public Methods

Method Description
FileSearcher ( ) : System
SearchFiles ( string folder, string pattern, bool regexPattern, bool includeSubfolders ) : string[]

Search files

SearchFilesAsync ( string folder, string pattern, bool regexPattern, bool includeSubfolders ) : void

Search files asynchronously

Stop ( ) : void

Private Methods

Method Description
GetStop ( ) : bool
InitializeRegex ( string pattern, bool compiled ) : void
MaximumWaitTimeExceeded ( ) : bool
ProcessFiles ( string files ) : string[]
ResetSearcher ( ) : void
SearchAsync ( object param ) : void
SearchFilesImpl ( string folder, string pattern, bool includeSubfolders, bool async ) : string[]
SendFiles ( string files, bool forced ) : void
SendLastSet ( ) : void
SendResultChunk ( string files, bool lastSet ) : void
SetStop ( bool value ) : void

Method Details

FileSearcher() public method

public FileSearcher ( ) : System
return System

SearchFiles() public method

Search files
public SearchFiles ( string folder, string pattern, bool regexPattern, bool includeSubfolders ) : string[]
folder string The folder where to begin searching.
pattern string The pattern the files need to match (ex. *.txt).
regexPattern bool
includeSubfolders bool Specifies whether or not to search the subfolders.
return string[]

SearchFilesAsync() public method

Search files asynchronously
public SearchFilesAsync ( string folder, string pattern, bool regexPattern, bool includeSubfolders ) : void
folder string The folder where to begin searching.
pattern string The pattern the files need to match (ex. *.txt).
regexPattern bool
includeSubfolders bool Specifies whether or not to search the subfolders.
return void

Stop() public method

public Stop ( ) : void
return void