• brucethemoose@lemmy.world
    link
    fedilink
    English
    arrow-up
    50
    ·
    2 days ago

    Terrible code.

    os.remove does not remove folders, for that you want shutil.rmtree().

    Best to just do the user data folder since that’s where you have permission anyway.