FileUtils Bug in 1.8.0

Discussion in 'Ruby' started by Jim Freeze, Apr 22, 2004.

  1. Jim Freeze

    Jim Freeze Guest

    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
     
    Jim Freeze, Apr 22, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chad Fowler

    Fileutils.cp bug?

    Chad Fowler, Nov 17, 2003, in forum: Ruby
    Replies:
    2
    Views:
    179
  2. John-Mason P. Shackelford

    FileUtils.rm_rf bug on win2k?

    John-Mason P. Shackelford, Jul 14, 2004, in forum: Ruby
    Replies:
    1
    Views:
    198
    Minero Aoki
    Aug 8, 2004
  3. Ville Mattila
    Replies:
    3
    Views:
    129
    Ville Mattila
    Oct 14, 2004
  4. Joel VanderWerf

    bug in FileUtils.ln_s ?

    Joel VanderWerf, Jun 12, 2009, in forum: Ruby
    Replies:
    1
    Views:
    128
    Joel VanderWerf
    Jun 12, 2009
  5. Luis Lavena
    Replies:
    0
    Views:
    315
    Luis Lavena
    Jul 10, 2010
Loading...

Share This Page