| 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 | { |
nothing calls this directly
no test coverage detected