예제 #1
0
 private void DeleteStoreFiles(DatabaseLayout databaseLayout, System.Predicate <StoreType> storesToKeep)
 {
     foreach (StoreType type in StoreType.values())
     {
         if (type.RecordStore && !storesToKeep(type))
         {
             DatabaseFile databaseFile = type.DatabaseFile;
             databaseLayout.File(databaseFile).forEach(_fileSystem.deleteFile);
             databaseLayout.IdFile(databaseFile).ifPresent(_fileSystem.deleteFile);
         }
     }
 }