From: "bdimych (Dmitry Bolshakov)" Date: 2013-12-31T06:59:06+09:00 Subject: [ruby-core:59418] [ruby-trunk - Bug #9327][Open] Why FileUtils.rmdir ignores Errno::ENOTEMPTY ? Issue #9327 has been reported by bdimych (Dmitry Bolshakov). ---------------------------------------- Bug #9327: Why FileUtils.rmdir ignores Errno::ENOTEMPTY ? https://bugs.ruby-lang.org/issues/9327 Author: bdimych (Dmitry Bolshakov) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0p247 (2013-06-27) [i386-mingw32] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN 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. -- http://bugs.ruby-lang.org/