| 238 | } |
| 239 | |
| 240 | bool deletePath(QString path) |
| 241 | { |
| 242 | std::error_code err; |
| 243 | |
| 244 | fs::remove_all(toStdString(path), err); |
| 245 | |
| 246 | if (err) { |
| 247 | qWarning() << "Failed to remove files:" << QString::fromStdString(err.message()); |
| 248 | } |
| 249 | |
| 250 | return err.value() == 0; |
| 251 | } |
| 252 | |
| 253 | bool trash(QString path, QString *pathInTrash = nullptr) |
| 254 | { |
no test coverage detected