bji / libs3

Other
157 stars 151 forks source link

Fixed noname top directory in S3 bucket if a path begins with / #82

Open lucius-pl opened 6 years ago

lucius-pl commented 6 years ago

When a key parameter in S3_put_object function starts with “/“ plus directory name, for example: /directory/…, then a noname top directory is created in the bucket, for example: bucket//directory/… . This PR fixes it. Impact: double "/" is needed to get a noname directory for example: //key.