Skip to content

Commit 90473e1

Browse files
Merge pull request #248361 from pauljewellmsft/pauljewell-list-blobs
Add clarification to list blobs in dev guide
2 parents b71d6db + 198d0a0 commit 90473e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: pauljewell
88

99
ms.service: azure-blob-storage
1010
ms.topic: how-to
11-
ms.date: 02/14/2023
11+
ms.date: 08/16/2023
1212
ms.devlang: csharp
1313
ms.custom: devx-track-csharp, devguide-csharp, devx-track-dotnet
1414
---
@@ -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 that you have a storage account with a flat namespace. If you've enabled the hierarchical namespace feature for your storage account, directories are not virtual. Instead, they are concrete, independent objects. As a result, directories appear in the list as zero-length blobs.</br></br>For an alternative listing option when working with a hierarchical namespace, 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)