mutapath.MutaPath.fnmatch

MutaPath.fnmatch(pattern, normcase=None)[source]

Return True if self.name matches the given pattern.

pattern - A filename pattern with wildcards,

for example '*.py'. If the pattern contains a normcase attribute, it is applied to the name and path prior to comparison.

normcase - (optional) A function used to normalize the pattern and

filename before matching. Defaults to self.module(), which defaults to os.path.normcase().