diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-15 10:28:04 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-15 10:28:04 +0000 |
commit | cd74de7314503ad640f18916c88d57eb9f2d0188 (patch) | |
tree | 1d7d113c9994b902595aa8710cea02cb3dabc841 | |
parent | 93db1877cf2833b058252e18f3eabd97f6065426 (diff) | |
download | ruby-cd74de7314503ad640f18916c88d57eb9f2d0188.tar.gz |
* lib/net/fileutils.rb: rm_r should raise Errno::ENOENT if file not exist. [ruby-core:958] Thanks Johan Holmberg.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/fileutils.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Apr 15 19:35:08 2003 Minero Aoki <aamine@loveruby.net> + + * 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 <nobu.nokada@softhome.net> * 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 |