We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68605dd commit e4d6c35Copy full SHA for e4d6c35
qcloud_cos/cos_client.py
@@ -85,6 +85,8 @@ def uri(self, bucket, path=None, scheme=None, region=None):
85
if region is None:
86
region = self._region
87
if path is not None:
88
+ if path == "":
89
+ raise CosClientError("Key can't be empty string")
90
if path[0] == '/':
91
path = path[1:]
92
url = u"{scheme}://{bucket}.{region}.myqcloud.com/{path}".format(
0 commit comments