Skip to content

Commit 0b368c2

Browse files
committed
fix file extension search using '*' failing
1 parent 5661b20 commit 0b368c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,17 @@ private List<Result> WindowsIndexTopLevelFolderSearch(Query query, string path)
144144

145145
private bool UseWindowsIndexForDirectorySearch(string locationPath)
146146
{
147+
var pathToDirectory = FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath);
148+
147149
if (!settings.UseWindowsIndexForDirectorySearch)
148150
return false;
149151

150152
if (settings.IndexSearchExcludedSubdirectoryPaths
151-
.Any(x => FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath)
153+
.Any(x => FilesFolders.ReturnPreviousDirectoryIfIncompleteString(pathToDirectory)
152154
.StartsWith(x.Path, StringComparison.OrdinalIgnoreCase)))
153155
return false;
154156

155-
return indexSearch.PathIsIndexed(locationPath);
157+
return indexSearch.PathIsIndexed(pathToDirectory);
156158
}
157159
}
158160
}

0 commit comments

Comments
 (0)