Temp directories should be created with [Dir.mktmpdir](http://ruby-doc.org/stdlib-1.9.3/libdoc/tmpdir/rdoc/Dir.html#method-c-mktmpdir). Don't forget to cleanup afterwards! :)