1
- using Flow . Launcher . Plugin . Explorer . Search . DirectoryInfo ;
1
+ using Flow . Launcher . Plugin . Explorer . Search . DirectoryInfo ;
2
2
using Flow . Launcher . Plugin . Explorer . Search . Everything ;
3
3
using Flow . Launcher . Plugin . Explorer . Search . QuickAccessLinks ;
4
4
using Flow . Launcher . Plugin . SharedCommands ;
@@ -180,16 +180,16 @@ private async Task<List<Result>> PathSearchAsync(Query query, CancellationToken
180
180
181
181
// Query is a location path with a full environment variable, eg. %appdata%\somefolder\, c:\users\%USERNAME%\downloads
182
182
var needToExpand = EnvironmentVariables . HasEnvironmentVar ( querySearch ) ;
183
- var locationPath = needToExpand ? Environment . ExpandEnvironmentVariables ( querySearch ) : querySearch ;
183
+ var path = needToExpand ? Environment . ExpandEnvironmentVariables ( querySearch ) : querySearch ;
184
184
185
185
// Check that actual location exists, otherwise directory search will throw directory not found exception
186
- if ( ! FilesFolders . ReturnPreviousDirectoryIfIncompleteString ( locationPath ) . LocationExists ( ) )
186
+ if ( ! FilesFolders . ReturnPreviousDirectoryIfIncompleteString ( path ) . LocationExists ( ) )
187
187
return results . ToList ( ) ;
188
188
189
189
var useIndexSearch = Settings . IndexSearchEngine is Settings . IndexSearchEngineOption . WindowsIndex
190
- && UseWindowsIndexForDirectorySearch ( locationPath ) ;
190
+ && UseWindowsIndexForDirectorySearch ( path ) ;
191
191
192
- var retrievedDirectoryPath = FilesFolders . ReturnPreviousDirectoryIfIncompleteString ( locationPath ) ;
192
+ var retrievedDirectoryPath = FilesFolders . ReturnPreviousDirectoryIfIncompleteString ( path ) ;
193
193
194
194
results . Add ( retrievedDirectoryPath . EndsWith ( ":\\ " )
195
195
? ResultManager . CreateDriveSpaceDisplayResult ( retrievedDirectoryPath , query . ActionKeyword , useIndexSearch )
@@ -200,21 +200,21 @@ private async Task<List<Result>> PathSearchAsync(Query query, CancellationToken
200
200
201
201
IAsyncEnumerable < SearchResult > directoryResult ;
202
202
203
- var recursiveIndicatorIndex = query . Search . IndexOf ( '>' ) ;
203
+ var recursiveIndicatorIndex = path . IndexOf ( '>' ) ;
204
204
205
205
if ( recursiveIndicatorIndex > 0 && Settings . PathEnumerationEngine != Settings . PathEnumerationEngineOption . DirectEnumeration )
206
206
{
207
207
directoryResult =
208
208
Settings . PathEnumerator . EnumerateAsync (
209
- query . Search [ ..recursiveIndicatorIndex ] . Trim ( ) ,
210
- query . Search [ ( recursiveIndicatorIndex + 1 ) ..] ,
209
+ path [ ..recursiveIndicatorIndex ] . Trim ( ) ,
210
+ path [ ( recursiveIndicatorIndex + 1 ) ..] ,
211
211
true ,
212
212
token ) ;
213
213
214
214
}
215
215
else
216
216
{
217
- directoryResult = DirectoryInfoSearch . TopLevelDirectorySearch ( query , query . Search , token ) . ToAsyncEnumerable ( ) ;
217
+ directoryResult = DirectoryInfoSearch . TopLevelDirectorySearch ( query , path , token ) . ToAsyncEnumerable ( ) ;
218
218
}
219
219
220
220
if ( token . IsCancellationRequested )
0 commit comments