'Add a list of files to the current component as specified in the
glob pattern. Individual files can be excluded in the exclude list.'

def glob(self, pattern, exclude=None):

    files = glob.glob1(self.absolute, pattern)
    for f in files:
        if (exclude and (f in exclude)):
            continue
        self.add_file(f)
    return files
