Dir#rmdir raises improper exception if directory is not empty.
--------------------------------------------------------------
Key: JRUBY-6214
URL: https://jira.codehaus.org/browse/JRUBY-6214
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6.5
Reporter: Kevin Menard
According to the documentation for Dir#rmdir [1], if the directory is not
empty, a subclass of SystemCallError. JRuby currently raises SystemCallError
directly, rather than one of the subclasses. MRI appears to raise either
Errno::NOTEMPTY or Errno::EEXIST.
This discrepancy currently breaks the CarrierWave library, since it checks for
either of those two subclasses in its error handling.
[1] -- http://www.ruby-doc.org/core-1.9.3/Dir.html#method-c-rmdir
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email