def getdirs():
    dirs = [i for i in os.listdir(dname)]
    dirs = filter(lambda x : not os.path.isfile(os.path.join(dname, x)),
                  dirs)
    return dirs
Get current directories of cwd in order to restore to this
dataset/ETHPy150Open statsmodels/statsmodels/tools/update_web.py/getdirs