Class PathFilter
PathFilter filters directories and files using a form of System.Text.RegularExpressions.Regex by full path name. See NameFilter for more detail on filtering.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Core
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class PathFilter : IScanFilter
Constructors
| Improve this Doc View SourcePathFilter(String)
Initialise a new instance of PathFilter.
Declaration
public PathFilter(string filter)
Parameters
Type | Name | Description |
---|---|---|
System.String | filter | The filter expression to apply. |
Methods
| Improve this Doc View SourceIsMatch(String)
Test a name to see if it matches the filter.
Declaration
public virtual bool IsMatch(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if the name matches, false otherwise. |
Remarks
System.IO.Path.GetFullPath(System.String) is used to get the full path before matching.