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

Function openPath

launcher/DesktopServices.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42namespace DesktopServices {
43bool openPath(const QFileInfo& path, bool ensureFolderPathExists)
44{
45 qDebug() << "Opening path" << path;
46 if (ensureFolderPathExists) {
47 FS::ensureFolderPathExists(path);
48 }
49 return openUrl(QUrl::fromLocalFile(path.absoluteFilePath()));
50}
51
52bool openPath(const QString& path, bool ensureFolderPathExists)
53{

Calls 2

ensureFolderPathExistsFunction · 0.85
openUrlFunction · 0.85

Tested by

no test coverage detected