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 | 0a284428cbf4512d3263ac2fdd54951d41e2c026 (patch) | |
tree | 1d7d113c9994b902595aa8710cea02cb3dabc841 /lib/fileutils.rb | |
parent | a29425681f3a3b40bb214e74fba1c2d01de28b2b (diff) | |
download | ruby-0a284428cbf4512d3263ac2fdd54951d41e2c026.tar.gz ruby-0a284428cbf4512d3263ac2fdd54951d41e2c026.tar.xz ruby-0a284428cbf4512d3263ac2fdd54951d41e2c026.zip |
* lib/net/fileutils.rb: rm_r should raise Errno::ENOENT if file not exist. [ruby-core:958] Thanks Johan Holmberg.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r-- | lib/fileutils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 0997b9473..66a123f20 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 |