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

Function deletePath

launcher/FileSystem.cpp:240–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240bool deletePath(QString path)
241{
242 std::error_code err;
243
244 fs::remove_all(toStdString(path), err);
245
246 if (err) {
247 qWarning() << "Failed to remove files:" << QString::fromStdString(err.message());
248 }
249
250 return err.value() == 0;
251}
252
253bool trash(QString path, QString *pathInTrash = nullptr)
254{

Callers 6

installUpdatesMethod · 0.85
deleteInstanceMethod · 0.85
destroyStagingPathMethod · 0.85
installMethod · 0.85
createInstanceMethod · 0.85
destroyMethod · 0.85

Calls 1

toStdStringFunction · 0.85

Tested by

no test coverage detected