T
4

Rant: My rookie Python script deleted a year of family photos

I was testing a file organizer on my laptop at a coffee shop downtown last Saturday, and accidentally told shutil.rmtree to point at my pictures folder instead of the temp folder, lost every vacation and holiday shot from the last 12 months, and no, the recycle bin didn't help because the drive was an external SSD, so now I'm rebuilding from social media saves and begging relatives to send me whatever they have; has anyone else had a brain freeze moment like this with os or shutil commands?
2 comments

Log in to join the discussion

Log In
2 Comments
the_drew
the_drew4d ago
Well the recycle bin actually won't help with external drives in Windows anyway.
4
river_fox18
Oh come on, that's not really true though. I've definitely had files I deleted from an external drive show up in my recycle bin before, especially if it's a USB drive that's been plugged in for a while. Maybe it's a permissions thing or depends on the drive's format, but I've pulled stuff back from the bin on my external Seagate more than once.
4