Skip to content

No recursive folder create option: az storage directory create  #22058

@kcheeeung

Description

@kcheeeung

Was this case ever considered? So I wanted this folder a/b/ inside my fileshare, but when I ran the command fails. Like in Linux, mkdir has a -p option to make the parent directory first instead of failing.

az storage directory create --account-name ACCOUNTNAME --share-name myfileshare --name a/b/ 

The / symbol is not even an allowed character in the folder name so I would think it's easy to parse the folder structure from the argument.

image

Desired behavior:
Create folder a/, then folder a/b/ automatically. Meaning it will create the parent folder first instead of failing.

I have to do this manually.

az storage directory create --account-name ACCOUNTNAME --share-name myfileshare --name a/
az storage directory create --account-name ACCOUNTNAME --share-name myfileshare --name a/b/

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions