Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh man, I did something similar once. Folder with customer files also had a temp folder that needed cleaning, so I wrote a program that went into the temp folder and deleted everything recursively. For some reason, the temp folder had a folder named ".." (no reason how anyone managed to create that). So I ran the script, and upon hitting the ".." folder, it started deleting regular customer files. Good times...


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: