MCPcopy Create free account
hub / github.com/MultiMC/Launcher / ensureExists

Function ensureExists

launcher/FileSystem.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace FS {
29
30void ensureExists(const QDir &dir)
31{
32 if (!QDir().mkpath(dir.absolutePath()))
33 {
34 throw FileSystemException("Unable to create folder " + dir.dirName() + " (" +
35 dir.absolutePath() + ")");
36 }
37}
38
39void write(const QString &filename, const QByteArray &data)
40{

Callers 1

writeFunction · 0.85

Calls 2

FileSystemExceptionClass · 0.85
QDirClass · 0.70

Tested by

no test coverage detected