From: Kaspar Schiess Date: 2013-01-07T18:39:25+09:00 Subject: Re: Keep temporary files > It seems that Tempfile object doesn't provide any way to do that. Would > you think it could a possible enhancement? > > I am surprised to not find any other thread about this limitation on > google... > You can use the extra argument to Tempfile#close to keep tempfiles around until the object is GCed. http://ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html#method-i-close If you want to keep temp files forever, you will have to look at the advice already given elsewhere in this thread. greetings, kaspar