💡
18
c/coding-for-beginners•grays13grays13•5d ago

Vent: My 'simple' Python script deleted a whole folder of my photos because I messed up a path.

I was following a tutorial on file handling, typed './images' instead of './images_backup', and ran the cleanup function before I realized my mistake, so has anyone recovered files after a coding blunder like that?
3 comments

Log in to join the discussion

Log In
3 Comments
davis.noah
davis.noah5d agoMost Upvoted
Used to think backups were overkill, but a similar mistake changed my mind fast.
10
blair_taylor32
Got a backup before the tutorial?
1
jenny47
jenny475d ago
Learned that lesson the hard way too.
0