MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / createPath

Method createPath

source/src/macro.h:267–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 if (groupBase) return Qi::macroDir;
266 return Qi::macroDir + groupName + QString('/');
267 }
268 QString makePath() const
269 {
270 return makeDir() + makeFile();
271 }
272 bool createPath() const
273 {
274 if (!QDir(Qi::macroDir).exists() && !QDir(Qi::macroDir).mkdir(Qi::macroDir))
275 {
276 MsgBox::Error(lang_trans("创建宏目录失败").toStdWString());
277 return false;
278 }
279 const QString dir = makeDir();
280 if (!QDir(dir).exists() && !QDir(dir).mkdir(dir))
281 {
282 MsgBox::Error(lang_trans("创建分组目录失败").toStdWString());
283 return false;
284 }

Callers

nothing calls this directly

Calls 1

ErrorEnum · 0.85

Tested by

no test coverage detected