mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
try10
This commit is contained in:
parent
d0ef22360d
commit
7121588ac0
@ -511,13 +511,15 @@ makes3fullpath(const char* rooturl, const char* bucket, const char* prefix, cons
|
||||
{
|
||||
int stat = NC_NOERR;
|
||||
|
||||
fprintf(stderr,"@@@ makes3fullpath: rooturl=%p\n",rooturl);
|
||||
fprintf(stderr,"@@@ makes3fullpath: rooturl=|%s|\n",rooturl);
|
||||
|
||||
assert(url != NULL);
|
||||
assert(rooturl != NULL);
|
||||
|
||||
ncbytescat(url,rooturl);
|
||||
|
||||
fprintf(stderr,"@@@ makes3fullpath: url=|%s|\n",ncbytescontents(url));
|
||||
|
||||
if(bucket) {
|
||||
if(ncbyteslength(url) > 0 && ncbytesget(url,ncbyteslength(url)-1) != '/') ncbytescat(url,"/");
|
||||
if(*bucket == '/') bucket++;
|
||||
|
Loading…
Reference in New Issue
Block a user