Re: Bug in FileUtils - apathy or bad email

From: "Warren Brown" <WBrown@...>
Date: 2004-04-29 21:39:00 UTC
List: ruby-core #2832
Jim,

> Dir.mkdir("fred")
> Dir.mkdir("neighbor")
> 
> FileUtils.ln_s("../neighbor","fred/upandover")
> 
> FileUtils.rm_rf("fred")
> 
> > ruby -v test.rb 
> ruby 1.8.0 (2003-08-04) [sparc-solaris2.8]
> /usr/local/lib/ruby/1.8/fileutils.rb:583:in `rmdir': Not a directory -
> fred/upandover (Errno::ENOTDIR)
> ...

    I'm don't have a Ruby installation where I am right now, but it
looks like you are creating a symbolic link to the nonexistent directory
"../neighbor" instead of the directory you created "./neighbor".  If so,
the error message looks correct.

    - Warren Brown




In This Thread

Prev Next