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

Function ensureFolderPathExists

launcher/FileSystem.cpp:275–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275bool ensureFolderPathExists(const QFileInfo folderPath)
276{
277 QDir dir;
278 QString ensuredPath = folderPath.filePath();
279 if (folderPath.exists())
280 return true;
281
282 bool success = dir.mkpath(ensuredPath);
283 return success;
284}
285
286bool ensureFolderPathExists(const QString folderPathName)
287{

Callers 15

openPathFunction · 0.85
ApplicationMethod · 0.85
extractMethod · 0.85
extractSubDirFunction · 0.85
extractZipMethod · 0.85
overrideFolderFunction · 0.85
createPackComponentMethod · 0.85
downloadSucceededMethod · 0.85
TranslationsModelMethod · 0.85
PrismUpdaterAppMethod · 0.85
backupAppDirMethod · 0.85

Calls 3

QFileInfoClass · 0.85
filePathMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected