Project

General

Profile

Bug #9327

Why FileUtils.rmdir ignores Errno::ENOTEMPTY ?

Added by bdimych (Dmitry Bolshakov) over 4 years ago. Updated over 4 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
[ruby-core:59418]

Description

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.

History

#1 [ruby-core:59507] Updated by vajrasky (Vajrasky Kok) over 4 years ago

It is because we added :parents option in FileUtils.rmdir. See this ticket for detail: https://bugs.ruby-lang.org/issues/3178

I already created patch to improve this situation on that ticket.

Also available in: Atom PDF