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
Afficher le fichier Open project: slashdotdash/Duplicity

Méthodes publiques

Méthode Description
IsMatch ( FileSystemChange change ) : bool
PathMatcher ( string pattern ) : System

Private Methods

Méthode 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 méthode

public IsMatch ( FileSystemChange change ) : bool
change FileSystemChange
Résultat bool

PathMatcher() public méthode

public PathMatcher ( string pattern ) : System
pattern string
Résultat System