MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / ensureExists

Function ensureExists

launcher/FileSystem.cpp:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99namespace FS {
100
101void ensureExists(const QDir& dir)
102{
103 if (!QDir().mkpath(dir.absolutePath())) {
104 throw FileSystemException("Unable to create folder " + dir.dirName() + " (" + dir.absolutePath() + ")");
105 }
106}
107
108void write(const QString& filename, const QByteArray& data)
109{

Callers 1

writeFunction · 0.85

Calls 2

FileSystemExceptionClass · 0.85
QDirClass · 0.70

Tested by

no test coverage detected