4
My first Python script deleted my whole downloads folder
I was sitting in a coffee shop on Main Street trying to follow a tutorial on file management. Accidentally used os.remove() in a loop without testing it first and watched 300 files disappear in about 2 seconds. Anyone else ruin something important when they were learning?
3 comments
Log in to join the discussion
Log In3 Comments
gavin4697d ago
Ever try running it directly on your desktop instead of a test folder first? Scripts go bad fast when you skip the sandbox.
10
angelarivera6d ago
Did you ever try running it in a virtual environment first? That saved me after I nuked my project folder once lol.
5