def METHOD_NAME():
    try:
        yield
    finally:
        for sp, tmpd, tmpp in edirs:
            if not tmpd:
                continue
            try:
                rename_edir(tmpp, wpath / sp)
            finally:
                tmpd.cleanup()