FileUtils Bug in 1.8.0

J

Jim Freeze

Does the current installation of Ruby have this problem?
cat test.rb

require 'fileutils'

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)
from /usr/local/lib/ruby/1.8/fileutils.rb:583:in `remove_dir'
from /usr/local/lib/ruby/1.8/fileutils.rb:577:in `remove_dir'
from /usr/local/lib/ruby/1.8/fileutils.rb:573:in `foreach'
from /usr/local/lib/ruby/1.8/fileutils.rb:573:in `remove_dir'
from /usr/local/lib/ruby/1.8/fileutils.rb:534:in `rm_r'
from /usr/local/lib/ruby/1.8/fileutils.rb:526:in `each'
from /usr/local/lib/ruby/1.8/fileutils.rb:526:in `rm_r'
from /usr/local/lib/ruby/1.8/fileutils.rb:550:in `rm_rf'
from test.rb:9



--
Jim Freeze
Ruby. The little language that could.
When a fellow says, "It ain't the money but the principle of the
thing," it's the money.
-- Kim Hubbard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top