diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-15 15:32:35 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-15 15:32:35 +0000 |
| commit | 6093111e1d40b4ade202d690491eaf72f125c0bd (patch) | |
| tree | 177b39f44b60c770ca00b8d7f630efe9a20ba00d /lib | |
| parent | a8d0d0a4a25a6f7eb48e4f502ec4283ced1a28de (diff) | |
| download | ruby-6093111e1d40b4ade202d690491eaf72f125c0bd.tar.gz ruby-6093111e1d40b4ade202d690491eaf72f125c0bd.tar.xz ruby-6093111e1d40b4ade202d690491eaf72f125c0bd.zip | |
* lib/pathname.rb (Pathname#unlink): use SystemCallError instead of
Errno::EISDIR because EISDIR is not portable.
[ruby-core:5001]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pathname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb index bac540230..b701a0651 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -862,7 +862,7 @@ class Pathname # * mixed * def unlink() begin File.unlink @path - rescue Errno::EISDIR + rescue SystemCallError Dir.unlink @path end end |
