'Gets a list of directories, which should be coverterms'

def _get_projectlist(self, d):

    dirlist = []
    try:
        os.makedirs(d)
    except:
        if (not os.path.exists(d)):
            raise
    map((lambda x: (os.path.isdir(os.path.join(d, x)) and dirlist.append(x))), os.listdir(d))
    return dirlist
