# File lib/vendor/fssm/fssm/pathname.rb, line 134
    def realpath
      raise unless self.exist?

      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