drivendataorg / drivendataorg/cloudpathlib

Azure Blob Storage: download_to does not work for containers where blobs folders and files with the same name

Open
#313 0 comments 1 reaction 0 assignees View on GitHub
Azure bug
Dominant language
Python
Stars
628
Forks
88
Avg merge
17h 28m
Merged PRs (30d)
2

Description

In azure blob storage you can have the following situation:
- `az://container/hello` # a file on storage
- `az://container/hello/world` # different file on storage

In this case, `az://container/hello` is both a file and a folder. At the very least, this breaks our [`download_to`](https://github.com/drivendataorg/cloudpathlib/blob/caeeb5037df0e9800361e1f02d4568a132fdf2bc/cloudpathlib/cloudpath.py#L736-L752) method, since it is recursive only if `is_file` returns False, which will never happen.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.