MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / createDirs

Method createDirs

src/openms_gui/source/VISUAL/TOPPASToolVertex.cpp:1180–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178 }
1179
1180 void TOPPASToolVertex::createDirs()
1181 {
1182 QDir dir;
1183 if (!dir.mkpath(getFullOutputDirectory().toQString()))
1184 {
1185 OPENMS_LOG_ERROR << "TOPPAS: Could not create path " << getFullOutputDirectory() << std::endl;
1186 }
1187
1188 // subsdirectories named after the output parameter name
1189 QStringList files = this->getFileNames();
1190 foreach(const QString &file, files)
1191 {
1192 QString sdir = File::path(file).toQString();
1193 if (!File::exists(sdir))
1194 {
1195 if (!dir.mkpath(sdir))
1196 {
1197 OPENMS_LOG_ERROR << "TOPPAS: Could not create path " << String(sdir) << std::endl;
1198 }
1199 }
1200 }
1201 }
1202
1203 void TOPPASToolVertex::setTopoNr(UInt nr)
1204 {

Callers

nothing calls this directly

Calls 2

getFileNamesMethod · 0.80
toQStringMethod · 0.45

Tested by

no test coverage detected