That moment my first Python script deleted my own folder
I was practicing on my laptop in a coffee shop in Portland, trying to write a cleanup script that would remove old temp files. I had the paths mixed up and instead of pointing to a temp folder, I pointed it straight at my project folder where I kept all my practice exercises. Hit enter, watched the terminal spit out line after line of deleted files, and it took me maybe 10 seconds to realize what happened. I froze and just stared at the screen, then yanked the power cord since I didn't know how to stop the loop. I lost about 3 weeks of notes and small scripts, but thankfully my big projects were on GitHub. I keep a backup on a USB drive now, and I triple check every path before running anything. Has anyone else nuked something important and found a quick way to recover it before, or was I just extra unlucky?