private Task <List <SearchTask> > FindAndExecuteAsync() { return(Task.Run(() => { var storeResultDir = "OutFiles"; try { if (Directory.Exists(storeResultDir)) { Directory.Delete(storeResultDir, true); } Directory.CreateDirectory(storeResultDir); } catch { //skip } return _converterManager.Execute(SettingsViewModel.SearchTasks, storeResultDir); })); }