MCPcopy Create free account
hub / github.com/KDE/kdevelop / isEmptyDirStructure

Function isEmptyDirStructure

plugins/git/gitplugin.cpp:606–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604}
605
606bool isEmptyDirStructure(const QDir &dir)
607{
608 const auto infos = dir.entryInfoList(QDir::AllEntries | QDir::NoDotAndDotDot);
609 for (const QFileInfo& i : infos) {
610 if (i.isDir()) {
611 if (!isEmptyDirStructure(QDir(i.filePath()))) return false;
612 } else if (i.isFile()) {
613 return false;
614 }
615 }
616 return true;
617}
618
619VcsJob* GitPlugin::remove(const QList<QUrl>& files)
620{

Callers 2

removeMethod · 0.85
moveMethod · 0.85

Calls 2

QDirClass · 0.70
filePathMethod · 0.45

Tested by

no test coverage detected