mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
Remove hidden files from indexer results (#4325)
* Added functionality to not display hidden files * Added interfaces for seperating db layer * Updated variable naming and refactored Database connection class * Added tests for WindowsSearchAPI class * Fixed nit with braces * Added function to test that all connections from database are closed
This commit is contained in:
committed by
GitHub
parent
7ed03c8b90
commit
a21a3827fd
@@ -30,7 +30,7 @@ namespace Microsoft.Plugin.Indexer
|
||||
private PluginJsonStorage<Settings> _storage;
|
||||
|
||||
// To access Windows Search functionalities
|
||||
private readonly WindowsSearchAPI _api = new WindowsSearchAPI();
|
||||
private readonly WindowsSearchAPI _api = new WindowsSearchAPI(new OleDBSearch());
|
||||
|
||||
// Reserved keywords in oleDB
|
||||
private string ReservedStringPattern = @"^[\/\\\$\%]+$";
|
||||
|
||||
Reference in New Issue
Block a user