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

Function urlDir

plugins/git/gitplugin.cpp:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173QDir urlDir(const QUrl& url)
174{
175 QFileInfo f(url.toLocalFile());
176 if(f.isDir())
177 return QDir(url.toLocalFile());
178 else
179 return f.absoluteDir();
180}
181QDir urlDir(const QList<QUrl>& urls) { return urlDir(urls.first()); } //TODO: could be improved
182
183}

Callers 15

additionalMenuEntriesMethod · 0.70
ctxPushStashMethod · 0.70
ctxPopStashMethod · 0.70
ctxStashManagerMethod · 0.70
initMethod · 0.70
createWorkingCopyMethod · 0.70
statusMethod · 0.70
revertMethod · 0.70
tagMethod · 0.70
switchBranchMethod · 0.70
branchMethod · 0.70
deleteBranchMethod · 0.70

Calls 4

toLocalFileMethod · 0.80
absoluteDirMethod · 0.80
QDirClass · 0.70
firstMethod · 0.45

Tested by

no test coverage detected