Skip to content

Commit 72b9434

Browse files
authored
Merge pull request #76 from geeklearningio/hotfix/0.8.1
hotfix/0.8.1
2 parents 99f11e0 + 1a5c5c4 commit 72b9434

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/GeekLearning.Storage.Azure/AzureStore.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ public async ValueTask<IFileReference[]> ListAsync(string path, string searchPat
113113
}
114114
while (continuationToken != null);
115115

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

118-
var filteredResults = matcher.Execute(
119-
new Internal.AzureListDirectoryWrapper(path,
120-
pathMap));
120+
var filteredResults = matcher.Execute(new Internal.AzureListDirectoryWrapper(path, pathMap));
121121

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

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

0 commit comments

Comments
 (0)