C# Class Duplicity.Filtering.IgnoredFiles.GitIgnore.PathMatcher

Match patterns as a shell glob suitable for consumption by fnmatch, but wildcards in the pattern will not match a / in the pathname.
Inheritance: IMatcher
ファイルを表示 Open project: slashdotdash/Duplicity

Public Methods

Method Description
IsMatch ( FileSystemChange change ) : bool
PathMatcher ( string pattern ) : System

Private Methods

Method Description
AdaptToPattern ( string path ) : string

.gitignore patterns are specified using the Unix path separator character (/). We need to replace the current environment directory separator charactor with a forward slash.

IsMatch ( string path ) : bool

Method Details

IsMatch() public method

public IsMatch ( FileSystemChange change ) : bool
change FileSystemChange
return bool

PathMatcher() public method

public PathMatcher ( string pattern ) : System
pattern string
return System