MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / removePath

Function removePath

src/lemon.cpp:264–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void removePath(const QString &path) {
265 if (path.isEmpty())
266 return;
267
268 QDir dir(path);
269
270 if (! dir.exists())
271 return;
272
273 dir.setFilter(QDir::AllEntries | QDir::NoDotAndDotDot | QDir::Hidden);
274
275 for (const auto &fi : dir.entryInfoList()) {
276 if (fi.isFile() || fi.isSymLink())
277 fi.dir().remove(fi.fileName());
278 else
279 removePath(fi.absoluteFilePath());
280 }
281
282 dir.rmpath(dir.absolutePath());
283}
284
285void copyPath(const QString &fromPath, const QString &toPath) {
286 QDir dir(fromPath);

Callers 1

cleanupButtonClickedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected