MCPcopy Create free account
hub / github.com/YACReader/yacreader / writeIdToLibraryFolder

Function writeIdToLibraryFolder

YACReaderLibrary/yacreader_libraries.cpp:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace YACReader;
7
8void writeIdToLibraryFolder(const QString &path, const QUuid &id)
9{
10 QFile file(LibraryPaths::idPath(path));
11 if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
12 QTextStream stream(&file);
13 stream << id.toString(QUuid::WithoutBraces);
14 file.close();
15 }
16}
17
18QUuid readFromLibraryFolder(const QString &path)
19{

Callers 2

addLibraryMethod · 0.85
loadMethod · 0.85

Calls 3

toStringMethod · 0.80
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected