K
Kenneth McDonald
I'd like to be able to obtain a temporary directory in the same way I
can easily obtain a temporary file, but there doesn't seem to be a
function for this. Currently, I'm creating a temp file, getting it's
name, unlinking it, and then creating a dir with the same name. But
this is ugly, and in theory subject to a race condition. Is there a
better way of doing this?
Thanks,
Ken
can easily obtain a temporary file, but there doesn't seem to be a
function for this. Currently, I'm creating a temp file, getting it's
name, unlinking it, and then creating a dir with the same name. But
this is ugly, and in theory subject to a race condition. Is there a
better way of doing this?
Thanks,
Ken