Skip to content

Commit bfa1aab

Browse files
committed
add comment explaining why location check is needed
1 parent e9462e8 commit bfa1aab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ internal async Task<List<Result>> SearchAsync(Query query, CancellationToken tok
7070
if (isEnvironmentVariablePath)
7171
locationPath = EnvironmentVariables.TranslateEnvironmentVariablePath(locationPath);
7272

73+
// Check that actual location exists, otherwise directory search will throw directory not found exception
7374
if (!FilesFolders.LocationExists(FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath)))
7475
return results;
7576

0 commit comments

Comments
 (0)