Class FileSystemScanner
FileSystemScanner provides facilities scanning of files and directories.
Inheritance
Inherited Members
Namespace: ICSharpCode.SharpZipLib.Core
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class FileSystemScanner
Constructors
| Improve this Doc View SourceFileSystemScanner(IScanFilter)
Initialise a new instance of FileSystemScanner
Declaration
public FileSystemScanner(IScanFilter fileFilter)
Parameters
Type | Name | Description |
---|---|---|
IScanFilter | fileFilter | The file filter to apply. |
FileSystemScanner(IScanFilter, IScanFilter)
Initialise a new instance of FileSystemScanner
Declaration
public FileSystemScanner(IScanFilter fileFilter, IScanFilter directoryFilter)
Parameters
Type | Name | Description |
---|---|---|
IScanFilter | fileFilter | The file filter to apply. |
IScanFilter | directoryFilter | The directory filter to apply. |
FileSystemScanner(String)
Initialise a new instance of FileSystemScanner
Declaration
public FileSystemScanner(string filter)
Parameters
Type | Name | Description |
---|---|---|
System.String | filter | The file filter to apply when scanning. |
FileSystemScanner(String, String)
Initialise a new instance of FileSystemScanner
Declaration
public FileSystemScanner(string fileFilter, string directoryFilter)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileFilter | The file filter to apply. |
System.String | directoryFilter | The directory filter to apply. |
Fields
| Improve this Doc View SourceCompletedFile
Delegate to invoke when processing for a file has finished.
Declaration
public CompletedFileHandler CompletedFile
Field Value
Type | Description |
---|---|
CompletedFileHandler |
DirectoryFailure
Delegate to invoke when a directory failure is detected.
Declaration
public DirectoryFailureHandler DirectoryFailure
Field Value
Type | Description |
---|---|
DirectoryFailureHandler |
FileFailure
Delegate to invoke when a file failure is detected.
Declaration
public FileFailureHandler FileFailure
Field Value
Type | Description |
---|---|
FileFailureHandler |
ProcessFile
Delegate to invoke when a file is processed.
Declaration
public ProcessFileHandler ProcessFile
Field Value
Type | Description |
---|---|
ProcessFileHandler |
Methods
| Improve this Doc View SourceScan(String, Boolean)
Scan a directory.
Declaration
public void Scan(string directory, bool recurse)
Parameters
Type | Name | Description |
---|---|---|
System.String | directory | The base directory to scan. |
System.Boolean | recurse | True to recurse subdirectories, false to scan a single directory. |
Events
| Improve this Doc View SourceProcessDirectory
Delegate to invoke when a directory is processed.
Declaration
public event EventHandler<DirectoryEventArgs> ProcessDirectory
Event Type
Type | Description |
---|---|
System.EventHandler<DirectoryEventArgs> |