推荐文档
评价此篇文章
用户可通过如下操作查看某文件是否存在:
HeadObjectRequest request(bucketName, objectKey); HeadObjectResponse response; int ret = client.head_object(request, &response); if (response.status_code() == 404) { std::cout << "ObjectKey not exist!" << std::endl; }