'return true if the basename/fullname matches the glob-\'pattern\'.
valid pattern characters::
*       matches everything
?       matches any single character
[seq]   matches any character in seq
[!seq]  matches any char not in seq
If the pattern contains a path-separator then the full path
is used for pattern matching and a \'*\' is prepended to the
pattern.
if the pattern doesn\'t contain a path-separator the pattern
is only matched against the basename.'

def fnmatch(self, pattern):

    return FNMatcher(pattern)(self)
