Skip to content

Commit b90437d

Browse files
Add clarification to list blobs in dev guide
1 parent 2f1ef2d commit b90437d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/storage/blobs/storage-blobs-list.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ By default, a listing operation returns blobs in a flat listing. In a flat listi
6060

6161
The following example lists the blobs in the specified container using a flat listing, with an optional segment size specified, and writes the blob name to a console window.
6262

63-
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.
64-
6563
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/dotnet-v12/CRUD.cs" id="Snippet_ListBlobsFlatListing":::
6664

6765
The sample output is similar to:
@@ -78,6 +76,9 @@ Blob name: FolderA/FolderB/FolderC/blob2.txt
7876
Blob name: FolderA/FolderB/FolderC/blob3.txt
7977
```
8078

79+
> [!NOTE]
80+
> The sample output shown assumes a storage account with a flat namespace. If you've enabled the hierarchical namespace feature on your storage account, directories are not virtual. Instead, they are concrete, independent objects. This means that directories appear in the list as zero-length blobs.</br>For alternative hierarchical namespace listing options, see [List directory contents (Azure Data Lake Storage Gen2)](data-lake-storage-directory-file-acl-dotnet.md#list-directory-contents)..
81+
8182
## Use a hierarchical listing
8283

8384
When you call a listing operation hierarchically, Azure Storage returns the virtual directories and blobs at the first level of the hierarchy.

0 commit comments

Comments
 (0)