From: Jim Freeze Date: 2004-04-30T12:50:18+09:00 Subject: Re: Bug in FileUtils - apathy or bad email On Friday, 30 April 2004 at 6:39:00 +0900, Warren Brown wrote: > 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. "fred" and "neighbor" are siblings. The link inside "fred" points up and over to "neighbor". My directory shows this: jfreeze@rabbit ~/tmp 11 -> ls -dF fred nei* fred/ neighbor/ jfreeze@rabbit ~/tmp 12 -> dir fred total 4 drwxr-xr-x 2 jfreeze jfreeze 512 Apr 28 23:58 ./ drwxr-xr-x 7 jfreeze jfreeze 512 Apr 29 01:25 ../ lrwxr-xr-x 1 jfreeze jfreeze 11 Apr 28 23:58 upandover@ -> ../neighbor -- Jim Freeze Those of you who think you know everything are very annoying to those of us who do.