MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / write_json_meta_data

Method write_json_meta_data

src/ChunkWriter.cpp:254–264  ·  view source on GitHub ↗

write JSON meta data

Source from the content-addressed store, hash-verified

252
253// write JSON meta data
254void 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
267void ChunkWriter::create_folder(std::string path)

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
JsonMethod · 0.45

Tested by

no test coverage detected