private void DoForAllLocalFiles(Action <string> action) { Directory.DoForAllFiles(file => { if (!file.StartsWith(databaseDirectoryWithSlash)) { action(file); } return(true); }); }