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

Function readFromLibraryFolder

YACReaderLibrary/yacreader_libraries.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18QUuid readFromLibraryFolder(const QString &path)
19{
20 QFile file(LibraryPaths::idPath(path));
21 if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
22 QTextStream stream(&file);
23 QString id = stream.readLine();
24 file.close();
25 return QUuid(id);
26 }
27
28 return QUuid();
29}
30
31YACReaderLibraries::YACReaderLibraries()
32 : QObject()

Callers 1

addLibraryMethod · 0.85

Calls 2

openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected