MCPcopy Create free account
hub / github.com/QNapi/qnapi / resolveTmpPath

Method resolveTmpPath

libqnapi/src/config/configreader.cpp:203–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203const GeneralConfig ConfigReader::resolveTmpPath(
204 const GeneralConfig& config) const {
205 QFileInfo fi(config.tmpPath());
206
207 if (fi.isDir() && fi.isWritable()) {
208 return config;
209 } else {
210 return config.setTmpPath(QDir::tempPath());
211 }
212}

Callers

nothing calls this directly

Calls 2

tmpPathMethod · 0.80
setTmpPathMethod · 0.80

Tested by

no test coverage detected