# File lib/cloudfiles/container.rb, line 42
    def container_metadata
      @metadata ||= (
        response = self.connection.storage_request("HEAD", "#{escaped_name}/")
        raise CloudFiles::Exception::NoSuchContainer, "Container #{@name} does not exist" unless (response.code =~ /^20/)
        resphash = {}
        response.to_hash.select { |k,v| k.match(/^x-container-meta/) }.each { |x| resphash[x[0]] = x[1].to_s }
        {:bytes => response["x-container-bytes-used"].to_i, :count => response["x-container-object-count"].to_i, :metadata => resphash, :container_read => response["x-container-read"], :container_write => response["x-container-write"]}
      )
    end