diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-11 07:09:19 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-11 07:09:19 +0000 |
| commit | b44612e68801a79fb7c1219b00f228db3d1e6ff7 (patch) | |
| tree | c103e602415443302f8b983f9280da7f4d5165d1 /lib | |
| parent | 6c8c1114fc52ad363d97330cd0f17f98272e81d4 (diff) | |
| download | ruby-b44612e68801a79fb7c1219b00f228db3d1e6ff7.tar.gz ruby-b44612e68801a79fb7c1219b00f228db3d1e6ff7.tar.xz ruby-b44612e68801a79fb7c1219b00f228db3d1e6ff7.zip | |
* lib/pathname.rb (realpath): check existence of the file.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4744 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 7bd007a2c..9ececcb07 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -123,7 +123,7 @@ class Pathname resolved.unshift unresolved.pop else path = top + unresolved.join('/') - if FileTest.symlink? path + if File.lstat(path).symlink? link = File.readlink(path) if %r{\A/} =~ link top = '/' |
