From: Tanaka Akira Date: 2010-03-04T08:50:09+09:00 Subject: Re: A gem for handling temporary file(s)? 2010/3/4 Caleb Clausen : > Alternatively, you could put your temp file in $HOME/tmp rather than > the system-wide /tmp, which is another way to sidestep the race. I'm > pretty sure. If you go this way, Tempfile is useless to you, tho. Another way is Dir.mktmpdir in tmpdir. require 'tmpdir' Dir.mktmpdir {|d| tmppath = File.join(d, "foo") ... use tmppath ... } -- Tanaka Akira