# File lib/pathname2.rb, line 163
   def realpath
      File.stat(self) # Check to ensure that the path exists

      if File.symlink?(self)
         file = self.dup

         while true
            file = File.join(File.dirname(file), File.readlink(file))
            break unless File.symlink?(file)
         end

         self.class.new(file).clean
      else
         self.class.new(Dir.pwd) + self
      end
   end