https://pantsbuild.org/ logo
r

rough-minister-58256

03/27/2017, 10:28 PM
the odds of two concurrent
TempDir
keying to the same randomized dir name across a
clean-all
seems low to me - and we can minimize syscalls by just doing a singular
mkdir
each time and checking the result of that - but I do agree the more correct approach is to recreate the
TempDir
each time guarded with a
stat
- then
mkdir
- iff needed.