Skip to content

Commit

Permalink
Merge pull request #77 from geeklearningio/master
Browse files Browse the repository at this point in the history
Merge back
  • Loading branch information
asiffermann authored Jun 2, 2020
2 parents 1cda54e + 72b9434 commit 49bbb18
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 49bbb18

Please sign in to comment.