Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on fork() can fail. Parent comment
To write that safely, you'd test for the result of mkdir and cd to return success before deleting.
In a shell, you'd just go
mkdir /foo -m 0700 && cd /foo && ${deleteallfiles}
There are no comments on this comment yet.
To write that safely, you'd test for the result of mkdir and cd to return success before deleting.
In a shell, you'd just go