# File lib/openstack/swift/connection.rb, line 105
    def container_exists?(containername)
      path = "/#{URI.encode(containername.to_s)}"
      begin
        response = @connection.req("HEAD", path)
      rescue OpenStack::Exception::ItemNotFound
        return false
      end
      true
    end