MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / purgeAll

Method purgeAll

ui-linux/src/deployer.cpp:367–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367bool Deployer::purgeAll()
368{
369 undeploy();
370
371 QString configDir = crConfigDir();
372 QDir configQDir(configDir);
373 if (configQDir.exists()) {
374 configQDir.removeRecursively();
375 }
376
377 QString dataDir = crDataDir();
378 QDir dataQDir(dataDir);
379 if (dataQDir.exists()) {
380 dataQDir.removeRecursively();
381 }
382
383 m_statusMessage = "All CloudRedirect data has been removed.";
384 emit statusMessageChanged();
385 emit checkCompleted();
386 return true;
387}

Callers

nothing calls this directly

Calls 2

crConfigDirFunction · 0.85
crDataDirFunction · 0.85

Tested by

no test coverage detected