| 135 | } |
| 136 | bool writeFile(const void* data, size_t n) override { return out != nullptr && fwrite(data, 1, n, out) == n; } |
| 137 | void endFile() override |
| 138 | { |
| 139 | if (out != nullptr) { |
| 140 | fclose(out); |
| 141 | out = nullptr; |
| 142 | } |
| 143 | } |
| 144 | }; |
| 145 | |
| 146 | // Recursively gather files (with '/'-separated relative paths) and the dir |