Skip to content

Commit

Permalink
Run test cases on hns
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Nov 12, 2024
1 parent 0a8b8fd commit a6ee9e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tosfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,11 @@ def isdir(self, path: str) -> bool:
except TosServerError as e:
if e.status_code == TOS_SERVER_STATUS_CODE_NOT_FOUND:
return False
if (self._get_bucket_type(bucket) == TOS_BUCKET_TYPE_HNS
if (
self._get_bucket_type(bucket) == TOS_BUCKET_TYPE_HNS
and e.status_code == CONFLICT_CODE
and e.header._store["x-tos-ec"][1] == "0026-00000020"):
and e.header._store["x-tos-ec"][1] == "0026-00000020"
):
out = retryable_func_executor(
lambda: self.tos_client.list_objects_type2(
bucket,
Expand Down

0 comments on commit a6ee9e8

Please sign in to comment.