This commit is contained in:
Dennis Heimbigner 2023-04-27 16:02:54 -06:00
parent 1c3b05a252
commit c548930e7d

View File

@ -174,8 +174,6 @@ NC_s3sdkbucketexists(void* s3client0, const char* bucket, int* existsp, char** e
if(errmsgp) *errmsgp = NULL;
if((stat = makes3fullpath(s3client->rooturl,bucket,NULL,NULL,url))) goto done;
fprintf(stderr,">>> bucketexits: url=%s\n",ncbytescontents(url));
if((stat = NCH5_s3comms_s3r_head(s3client->h5s3client, ncbytescontents(url), NULL, NULL, &httpcode, NULL))) goto done;
if(existsp) {*existsp = (stat == 0 && httpcode == 200);}
@ -493,6 +491,10 @@ makes3fullpath(const char* rooturl, const char* bucket, const char* prefix, cons
{
int stat = NC_NOERR;
fprintf(stderr,">>> makes3fullpath: rooturl=|%s| url=|%s|\n",
(rooturl?rooturl:"null"),
(ncbytescontents(url)?ncbytescontents(url):"null"));
assert(url != NULL);
assert(rooturl != NULL);