Return a list of path objects that match the pattern.

        pattern - a path relative to this directory, with wildcards.

        For example, ``path('/users').glob('*/bin/*')`` returns a list
        of all the files users have in their bin directories.

def glob(self, pattern):
        """ Return a list of path objects that match the pattern.

        pattern - a path relative to this directory, with wildcards.

        For example, ``path('/users').glob('*/bin/*')`` returns a list
        of all the files users have in their bin directories.
        """
        cls = self.__class__
        return [cls(s) for s in glob.glob(_base(self / pattern))]