Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbull committed Nov 30, 2024
1 parent 8c9a013 commit c6156ad
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cloudpathlib/azure/azblobclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,11 @@ def _check_hns(self, cloud_path: AzureBlobPath) -> Optional[bool]:
return self._hns_enabled

def _check_hns_root_metadata(self, cloud_path: AzureBlobPath) -> bool:
root_dir = self.service_client.get_blob_client(
container=cloud_path.container, blob="/"
)
root_dir = self.service_client.get_blob_client(container=cloud_path.container, blob="/")

self._hns_enabled = (
root_dir.exists()
and root_dir.get_blob_properties().metadata.get("hdi_isfolder", False)
== "true"
and root_dir.get_blob_properties().metadata.get("hdi_isfolder", False) == "true"
)

return cast(bool, self._hns_enabled)
Expand Down

0 comments on commit c6156ad

Please sign in to comment.