Issue #9327 has been updated by jeremyevans0 (Jeremy Evans).

Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN)
Status changed from Open to Closed

This was fixed in commit:2635984cf2b9b7632f8b35afa2f29d219aba104a.  Now Ruby raises if a directory given cannot be removed.  It only ignores the exception when deleting parent directories.

Issue 3178 should also been closed, but it is a Backport191 issue and I lack the ability to close it.

----------------------------------------
Bug #9327: Why FileUtils.rmdir ignores Errno::ENOTEMPTY ?
https://bugs.ruby-lang.org/issues/9327#change-79335

* Author: bdimych (Dmitry Bolshakov)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
* Backport: 
----------------------------------------
It catches Errno::ENOTEMPTY and Errno::ENOENT and just does nothing.
Most of other FileUtils methods have option "force" which is false by default
but rmdir behaves as if it is true implicitly.
Imho it looks unexpected.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>