From: "akr (Akira Tanaka)" Date: 2012-07-14T18:24:56+09:00 Subject: [ruby-core:46452] [ruby-trunk - Bug #6715][Rejected] Dir.mktmpdir fails if you delete it yourself Issue #6715 has been updated by akr (Akira Tanaka). Status changed from Open to Rejected ---------------------------------------- Bug #6715: Dir.mktmpdir fails if you delete it yourself https://bugs.ruby-lang.org/issues/6715#change-28078 Author: mitchellh (Mitchell Hashimoto) Status: Rejected Priority: Normal Assignee: Category: Target version: ruby -v: 1.9.3-p125 Dir.mktmpdir when given a block will call `FileUtil.remove_entry_secure` in the ensure section. If the contents of the block happens to move/delete/modify that folder, then that will fail with Errno::ENOENT. I believe the correct behavior in this case should be to successfully return, since the folder is clearly gone in some way. -- http://bugs.ruby-lang.org/