Skip to content

Commit

Permalink
add rigs back; make explicit no dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbull committed Jul 28, 2024
1 parent a503d5e commit cee1761
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
7 changes: 6 additions & 1 deletion cloudpathlib/azure/azblobclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,12 @@ def _list_dir(
# walk_blobs returns folders with a trailing slash
blob_path = blob.name.rstrip("/")
blob_cloud_path = self.CloudPath(f"az://{cloud_path.container}/{blob_path}")
yield blob_cloud_path, isinstance(blob, BlobPrefix)

yield blob_cloud_path, (
isinstance(blob, BlobPrefix)
if not recursive
else False # no folders from list_blobs in non-hns storage accounts
)

def _move_file(
self, src: AzureBlobPath, dst: AzureBlobPath, remove_src: bool = True
Expand Down
14 changes: 7 additions & 7 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,12 @@ def local_s3_rig(request, monkeypatch, assets_dir):
[
azure_rig, # azure_rig0
azure_gen2_rig, # azure_rig1
# gs_rig,
# s3_rig,
# custom_s3_rig,
# local_azure_rig,
# local_s3_rig,
# local_gs_rig,
gs_rig,
s3_rig,
custom_s3_rig,
local_azure_rig,
local_s3_rig,
local_gs_rig,
],
)

Expand All @@ -466,6 +466,6 @@ def local_s3_rig(request, monkeypatch, assets_dir):
"s3_like_rig",
[
s3_rig,
# custom_s3_rig,
custom_s3_rig,
],
)

0 comments on commit cee1761

Please sign in to comment.