Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/GeekLearning.Storage.Azure/AzureStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ public async ValueTask<IFileReference[]> ListAsync(string path, string searchPat
}
while (continuationToken != null);

var pathMap = results.OfType<ICloudBlob>().Select(blob => new Internal.AzureFileReference(blob, withMetadata: withMetadata)).ToDictionary(x => x.Path);
var pathMap = results.OfType<ICloudBlob>()
.Select(blob => new Internal.AzureFileReference(blob, withMetadata: withMetadata))
.ToDictionary(x => Path.GetFileName(x.Path));

var filteredResults = matcher.Execute(
new Internal.AzureListDirectoryWrapper(path,
pathMap));
var filteredResults = matcher.Execute(new Internal.AzureListDirectoryWrapper(path, pathMap));

return filteredResults.Files.Select(x => pathMap[path + x.Path]).ToArray();
return filteredResults.Files.Select(x => pathMap[x.Path]).ToArray();
}

public async ValueTask<IFileReference> GetAsync(IPrivateFileReference file, bool withMetadata)
Expand Down