def loadTagDict(dirPath):
    d = {}
    try:
        files = os.listdir(dirPath)
    except __HOLE__:
        return {}

    for path in files:
        # ignore hidden files
        if path.startswith('.'):
            continue
        c = TagFile(os.path.join(dirPath, path))
        d[c.tag] = c

    return d
dataset/ETHPy150Open sassoftware/conary/conary/build/tags.py/loadTagDict