| 161 | } |
| 162 | |
| 163 | bool saveFile(const QString &fname,const QByteArray &data) |
| 164 | { |
| 165 | QFile tgt_fl(fname); |
| 166 | if(!tgt_fl.open(QFile::WriteOnly)) { |
| 167 | qWarning() << "failed to open target file" << fname; |
| 168 | return false; |
| 169 | } |
| 170 | if(data.size()!=tgt_fl.write(data)) { |
| 171 | qWarning() << "Failed to write complete file - write error"; |
| 172 | return false; |
| 173 | } |
| 174 | return true; |
| 175 | |
| 176 | } |
| 177 | |
| 178 | bool extractAllFiles(PiggFile &pigg,const QString &tgt_path) |
| 179 | { |
no test coverage detected