My first Python script deleted 3 hours of work in about 4 seconds
So I've been messing around with Python for like 6 weeks now, mostly little practice scripts. Last Tuesday I wrote something to sort my project folders by file type and rename the duplicates. I tested it on a dummy folder, felt good about myself, then ran it on my real folder without a backup. I had my file path variable pointing at the wrong directory, and it went to town renaming everything in there before I could even hit ctrl C. Took me until 11pm to untangle it. I learned about shutil.copy the hard way. What's the dumbest thing your early scripts did, and how do you protect yourself now besides just backups?