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

Function deletePath

launcher/FileSystem.cpp:673–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673bool deletePath(QString path)
674{
675 std::error_code err;
676
677 fs::remove_all(StringUtils::toStdString(path), err);
678
679 if (err) {
680 qWarning() << "Failed to remove files:" << QString::fromStdString(err.message());
681 }
682
683 return err.value() == 0;
684}
685
686bool trash(QString path, QString* pathInTrash)
687{

Callers 15

ApplicationMethod · 0.85
removeMethod · 0.85
copyFinishedMethod · 0.85
createModdedJarFunction · 0.85
moveByCopyFunction · 0.85
trashInstanceMethod · 0.85
deleteInstanceMethod · 0.85
destroyStagingPathMethod · 0.85
deleteExistingFilesMethod · 0.85
extractModsMethod · 0.85
createOverridesFunction · 0.85

Calls 3

toStdStringFunction · 0.85
fromStdStringFunction · 0.85
valueMethod · 0.80