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

Return True if 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 normcase from self.module, os.path.normcase().