Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
/tmp/box gets wiped without a confirmation or a warning #440
Comments
Steps to reproduce:
Expected output: no error. Actual output:
The last tests were:
|
How would you determine that the directory was created by Box itself or someone else? The offending code is here. Maybe I can just change |
One option is to don't clean up. It'll get cleaned anyway by a reboot or something. Other option is only to remove files matching the pattern which |
Bug report
I had a directory I created for my own purposes named /tmp/box (I've mounted an external drive there by occasion also named "box", hence the directory to mount it). Next I start unit tests for the box itself, only to find moments later that my external drive was made sparkling clean. Empty just like new. I had my backups, but if I didn't, that's will be very painful.
Box should not delete files it does not own and create during either normal functioning or testing, or even better - not to write to an existing directory by means of using a temporary directory with a random name.