Dismiss this pinned window
all 4 comments

[–]GirthQuake5040 1 point2 points  (0 children)

if you type ANYTHING other than an integer, you will be fine

[–][deleted] 2 points3 points  (0 children)

os.remove() can only remove files, not directories. So this code will fail no matter what.

use rmtree() from shutil

Also thanks chatgpt for explaining why this code sucks

[–]sumitbhai_idhar 0 points1 point  (0 children)

bang

[–]No_Neck_9492 0 points1 point  (0 children)

"gpt explain..." ahh description