Do we have an option for hierarchical folder options in blob storage?

Sky High 311 Reputation points
2022-06-27T05:53:59.737+00:00

Do we have an option for hierarchical folder options in blob storage similar to Datalake storage.

Ciao

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,895 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 45,321 Reputation points Microsoft Employee
    2022-06-27T09:21:49.627+00:00

    @Sky High Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    As I understand your are referring to hierarchical folder on Azure Blob Storage not hierarchical namespace as per ADLS gen 2 am I correct?

    If it's hierarchical namespace it's only available in ADLS gen 2

    Blobs in Azure Storage are organized in a flat paradigm, rather than a hierarchical paradigm (like a classic file system). However, you can organize blobs into virtual directories in order to mimic a folder structure. A virtual directory forms part of the name of the blob and is indicated by the delimiter character.

    To organize blobs into virtual directories, use a delimiter character in the blob name. The default delimiter character is a forward slash (/), but you can specify any character as the delimiter.

    If you name your blobs using a delimiter, then you can choose to list blobs hierarchically. For a hierarchical listing operation, Azure Storage returns any virtual directories and blobs beneath the parent object. You can call the listing operation recursively to traverse the hierarchy, similar to how you would traverse a classic file system programmatically.

    If you've enabled the hierarchical namespace feature on your account, directories are not virtual. Instead, they are concrete, independent objects. Therefore, directories appear in the list as zero-length blobs.

    Azure Blob storage supports using a root container which serves as a default container for a storage account. When using a root container, a blob stored in the root container may be addressed without referencing the root container name, so that a blob can be addressed at the top level of the storage account hierarchy

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 215235-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful