Excerpts from William Morgan's message of Tue Feb 19 18:38:11 +0100 2008: > Reformatted excerpts from nicolas.pouillard's message of 2008-02-18: > > If you're using Tempfile then closing the file, delete it. And > > closing the process can force it to close it's files. > > I am using Tempfile, which has a non-deterministic behavior (at least, I > can't figure out a pattern) upon crashing: sometimes it deletes the > files, sometimes it leaves them. > > I guess the answer is to manage my own temporary files, deleting them > only upon successful shutdown.
Long time ago (when I did more ruby stuffs), I wrote this module (attached) that makes part of a package called core_ex. I found it far more useful than the default module. Feel free to import it. -- Nicolas Pouillard aka Ertai
temp_path.rb
Description: Binary data
signature.asc
Description: PGP signature
_______________________________________________ sup-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/sup-talk
