void printFileStructure() { w.loadFileStructure(); w.getPoolSizes(); ch.analyze(); w.printFileStructure(); }
void repair() { w.loadFileStructure(); ch.analyze(); if(ch.getErrorCount() > 0) { if(ch.repair(true)==0) { repair(); } } }
void printStatus() { w.loadFileStructure(); ch.analyze(); int errors = ch.getErrorCount(); cout << "Status: "; if (errors > 0) { cout << errors << " errors found, run flexdir -r to repair" << endl; } else { cout << "OK" << endl; } }