Show / Hide Table of Contents

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.

Inheritance
System.Object
PathFilter
ExtendedPathFilter
NameAndSizeFilter
Implements
IScanFilter
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 Source

PathFilter(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 Source

IsMatch(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.

Implements

IScanFilter
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors