Issue #1494 has been updated by Usaku NAKAMURA.


To begin with, What situation did the original post encount?
I doubt that they tried to check the existence of the file after unlink.

About Tempfile, it is nonsense to check the existence.
There are another proper ways only if they wants the path name to check whether there is a directory-entry on the filesystem or not.

In conclusion, I recommend to revert the patch.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/1494

----------------------------------------
http://redmine.ruby-lang.org