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

Method toPath

launcher/minecraft/GradleSpecifier.h:111–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 return filename;
110 }
111 QString toPath(const QString & filenameOverride = QString()) const
112 {
113 if(!m_valid) {
114 return QString();
115 }
116 QString filename;
117 if(filenameOverride.isEmpty())
118 {
119 filename = getFileName();
120 }
121 else
122 {
123 filename = filenameOverride;
124 }
125 QString path = m_groupId;
126 path.replace('.', '/');
127 path += '/' + m_artifactId + '/' + m_version + '/' + filename;
128 return path;
129 }
130 inline bool valid() const
131 {
132 return m_valid;

Callers 3

storageSuffixMethod · 0.80
test_PathMethod · 0.80
test_NegativeMethod · 0.80

Calls 3

QStringClass · 0.85
isEmptyMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected