MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / ensureFolderPathExists

Function ensureFolderPathExists

launcher/FileSystem.cpp:262–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262bool ensureFolderPathExists(const QFileInfo folderPath)
263{
264 QDir dir;
265 QString ensuredPath = folderPath.filePath();
266 if (folderPath.exists())
267 return true;
268
269 bool success = dir.mkpath(ensuredPath);
270 return success;
271}
272
273bool ensureFolderPathExists(const QString folderPathName)
274{

Callers 15

openPathFunction · 0.85
ApplicationMethod · 0.85
extractSubDirFunction · 0.85
overrideFolderFunction · 0.85
createPackComponentMethod · 0.85
downloadSucceededMethod · 0.85
TranslationsModelMethod · 0.85
PrismUpdaterAppMethod · 0.85
backupAppDirMethod · 0.85
unpackArchiveMethod · 0.85
downloadJavaMethod · 0.85

Calls 3

QFileInfoClass · 0.85
filePathMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected