From: Kenneth McDonald Date: 2008-10-24T05:24:20+09:00 Subject: Any nice way to get a temporary directory? 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