Azure / Azure/azure-cli

Ability to download (download - batch) folders/sub-path from Container

Open
#10,699 5 comments 1 reaction 1 assignee Claimed by @Juliehzl View on GitHub
act-codegen-extensibility-squad feature-request Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Is your feature request related to a problem? Please describe.**
Unlike upload-batch, there is no option in download-batch to target a folder in the container. There is option just for the container url which means entire container download is forced.

My File Structure is like below, and i want to download just the folder **_grandchild_** and its contents.
"https://pradebban.blob.core.windows.net/parent/child/**grandchild**/..."

The --source parameter just takes url of the container and i end up downloading the entire content "https://pradebban.blob.core.windows.net/parent"

**Describe the solution you'd like**
The --source/-s parameter should accept paths inside container as below
-s "https://pradebban.blob.core.windows.net/parent/child/grandchild"

**Describe alternatives you've considered**
No alternatives. Is there examples of using wildcards to target folders inside a container?

**Additional context**
az storage blob upload-batch has clear options to target a subfolder and just not the container parent level.

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.