mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
track2
This commit is contained in:
parent
1c3b05a252
commit
c548930e7d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user