From: "Bartosz Dziewoński" Date: 2012-09-18T02:50:42+09:00 Subject: Re: Dir.mktmpdir doesn't remove it at exit? Per the docs: "If a block is given, it is yielded with the path of the directory. The directory and its contents are removed using FileUtils.remove_entry_secure before ::mktmpdir returns. The value of the block is returned." "If a block is not given, The path of the directory is returned. In this case, ::mktmpdir doesn’t remove the directory." http://ruby-doc.org/stdlib-1.9.3/libdoc/tmpdir/rdoc/Dir.html#method-c-mktmpdir -- Matma Rex