this post was submitted on 05 Oct 2023
881 points (97.8% liked)

Programmer Humor

19594 readers
612 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Synthead@lemmy.world 56 points 1 year ago (4 children)

You'll get an OSError if you try to remove a directory with os.remove

https://docs.python.org/3/library/os.html#os.remove

[โ€“] CivBase@lemmy.world 4 points 1 year ago* (last edited 1 year ago)

shutil.rmtree('C:\\Windows\\System32')

load more comments (3 replies)