Skip to content

Commit b2030ce

Browse files
author
Warren Buckley
committed
Remove trailing slash from GetDirectories again to match Core PhysicalFileSystem better
1 parent deec72e commit b2030ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ public IEnumerable<string> GetDirectories(string path)
407407
IEnumerable<IListBlobItem> blobs = directory.ListBlobs().Where(blob => blob is CloudBlobDirectory).ToList();
408408

409409
// Always get last segment for media sub folder simulation. E.g 1001, 1002
410-
return blobs.Cast<CloudBlobDirectory>().Select(cd => cd.Prefix);
410+
return blobs.Cast<CloudBlobDirectory>().Select(cd => cd.Prefix.TrimEnd('/'));
411411
}
412412

413413
/// <summary>

0 commit comments

Comments
 (0)