From: Benoit Daloze Date: 2012-07-30T03:26:16+09:00 Subject: [ruby-core:46866] Re: [ruby-trunk - Feature #6811] File, Dir and FileUtils should have bang-versions of singleton methods that fails silently On 29 July 2012 20:07, trans (Thomas Sawyer) wrote: > Sorry, it is if $DEBUG = true, not $VERBOSE. > > Here's the issue: > >> FileUtils.mkdir_p('a/b/c/d') > Exception `Errno::ENOENT' at /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:247 - No such file or directory - a/b/c/d > Exception `Errno::EEXIST' at /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:247 - File exists - . > => ["a/b/c/d"] > > It the most annoying warning, and I always end-up writing my own method instead. Ah, I see, this is due to the exception-driven implementation of FileUtils. I think it would be worth discussing it in a separate issue.