def METHOD_NAME(source):
    configs = []
    if source.startswith('file://'):
        source = source.replace('file://', '')
    matched_files = []
    source = os.path.expanduser(source)
    filenames = []
    if '*' in source:
        filenames = sorted(glob.glob(source), key=os.path.abspath)
        matched_files += [f for f in filenames if os.path.isfile(f)]
    elif os.path.isdir(source):
        filenames = [os.path.join(source, f) for f in os.listdir(source)]
        filenames = sorted(filenames, key=os.path.abspath)
        matched_files += [f for f in filenames if os.path.isfile(f)]
    elif os.path.isfile(source):
        matched_files.append(source)
    for src in matched_files:
        with open(src, 'r') as f:
            configs.append(dict(src=src, contents=f.read()))
    return configs