We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbbecc7 commit 46617ebCopy full SHA for 46617eb
src/Umbraco.StorageProviders.AzureBlob/IO/AzureBlobFileSystem.cs
@@ -128,7 +128,10 @@ public bool DirectoryExists(string path)
128
{
129
ArgumentNullException.ThrowIfNull(path);
130
131
- return ListBlobs(path).Any();
+ // Try getting a single item/page
132
+ Page<BlobHierarchyItem>? firstPage = ListBlobs(path).AsPages(pageSizeHint: 1).FirstOrDefault();
133
+
134
+ return firstPage?.Values.Count > 0;
135
}
136
137
/// <inheritdoc />
0 commit comments