write JSON meta data
| 252 | |
| 253 | // write JSON meta data |
| 254 | void ChunkWriter::write_json_meta_data() |
| 255 | { |
| 256 | // Load path of chunk folder |
| 257 | std::string json_path = QDir::cleanPath(QString(path.c_str()) + QDir::separator() + "info.json").toStdString(); |
| 258 | |
| 259 | // Write JSON file |
| 260 | std::ofstream myfile; |
| 261 | myfile.open (json_path.c_str()); |
| 262 | myfile << local_reader->Json() << std::endl; |
| 263 | myfile.close(); |
| 264 | } |
| 265 | |
| 266 | // check for chunk folder |
| 267 | void ChunkWriter::create_folder(std::string path) |