こんばんは、sheepman です。 On Sun, 23 Jan 2005 21:05:21 +0900 Gimite <gimite / gimite.ddo.jp> wrote: > FileUtils.rm('NotExistFile', :force => true) > > と書くと、うまくいくようです。これはリファレンスの書き間違えでしょうか…? > FileUtilsの他のメソッドについても、同様の箇所が有ります。 > http://www.ruby-lang.org/ja/man/index.cgi?cmd=view;name=fileutils.rb#FileUtils.2erm > リファレンスが間違っているようです。直しておきます。 RDoc にも間違いがあるようです。 Index: fileutils.rb =================================================================== RCS file: /src/ruby/lib/fileutils.rb,v retrieving revision 1.51 diff -u -r1.51 fileutils.rb --- fileutils.rb 1 Jan 2005 08:59:48 -0000 1.51 +++ fileutils.rb 23 Jan 2005 13:32:44 -0000 @@ -370,7 +370,7 @@ # # # Examples of copying several files to target directory. # FileUtils.cp_r %w(mail.rb field.rb debug/), site_ruby + '/tmail' - # FileUtils.cp_r Dir.glob('*.rb'), '/home/aamine/lib/ruby', :noop, :verbose + # FileUtils.cp_r Dir.glob('*.rb'), '/home/aamine/lib/ruby', { :noop => true, :verbose => true} # # # If you want to copy all contents of a directory instead of the # # directory itself, c.f. src/x -> dest/x, src/y -> dest/y, -- sheepman / TAMURA Takashi sheepman / tcn.zaq.ne.jp http://sheepman.parfait.ne.jp/