this post was submitted on 28 Feb 2025
428 points (98.2% liked)

Programmer Humor

1671 readers
36 users here now

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] brucethemoose@lemmy.world 50 points 3 months 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.