diff --git a/ChangeLog b/ChangeLog index 426d999d9a..c9c59c0e6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 15 19:35:08 2003 Minero Aoki + + * lib/net/fileutils.rb: rm_r should raise Errno::ENOENT if file + does not exist ([ruby-core:958]). Thanks Johan Holmberg. + Tue Apr 15 19:12:21 2003 Nobuyoshi Nakada * struct.c (rb_struct_hash): new methods Struct#hash, Struct#eql?. diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 0997b94735..66a123f203 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -520,6 +520,7 @@ module FileUtils st = File.lstat(fname) rescue next if force + raise end if st.symlink? then remove_file fname, force elsif st.directory? then remove_dir fname, force