On 29 July 2012 20:07, trans (Thomas Sawyer) <transfire / gmail.com> 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.