MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / fromFile

Method fromFile

src/backup/IdentityBackupObject.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 IdentityBackupObject IdentityBackupObject::fromFile(QDir const& path) {
25 QFile file(path.filePath(QStringLiteral("identity")));
26 checkAndOpenFile(file);
27 QByteArray const data = file.readAll();
28 file.close();
29
30 QString const backupString = QString::fromUtf8(data);
31 return IdentityBackupObject(backupString);
32 }
33
34 }
35}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected