| 105 | } |
| 106 | |
| 107 | void writeUncompressedRecoverySnapshot(const App::Document& doc, bool saveBinaryBrep) |
| 108 | { |
| 109 | std::string dirName = recoveryDirectoryFor(doc); |
| 110 | Base::FileInfo dir(dirName); |
| 111 | if (!dir.exists() && !dir.createDirectory()) { |
| 112 | throw Base::FileException("Failed to create auto-recovery directory", dir); |
| 113 | } |
| 114 | |
| 115 | Base::FileWriter writer(dirName.c_str()); |
| 116 | if (saveBinaryBrep) { |
| 117 | writer.setMode("BinaryBrep"); |
| 118 | } |
| 119 | |
| 120 | writeRecoverySnapshotContents(doc, writer); |
| 121 | } |
| 122 | |
| 123 | void writeCompressedRecoverySnapshot(const App::Document& doc, bool saveBinaryBrep) |
| 124 | { |
no test coverage detected