MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / ensureExists

Function ensureExists

launcher/FileSystem.cpp:184–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182namespace FS {
183
184void ensureExists(const QDir& dir)
185{
186 if (!QDir().mkpath(dir.absolutePath())) {
187 throw FileSystemException("Unable to create folder " + dir.dirName() + " (" + dir.absolutePath() + ")");
188 }
189}
190
191void write(const QString& filename, const QByteArray& data)
192{

Callers 3

writeFunction · 0.85
appendSafeFunction · 0.85
appendFunction · 0.85

Calls 2

FileSystemExceptionClass · 0.85
QDirClass · 0.70

Tested by

no test coverage detected