drivendataorg / drivendataorg/cloudpathlib
Azure Blob Storage: download_to does not work for containers where blobs folders and files with the same name
Open
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
Assessment
This issue has not been assessed yet.