| 253 | } |
| 254 | |
| 255 | bool updateTimestamp(const QString& filename) |
| 256 | { |
| 257 | #ifdef Q_OS_WIN32 |
| 258 | std::wstring filename_utf_16 = filename.toStdWString(); |
| 259 | return (_wutime64(filename_utf_16.c_str(), nullptr) == 0); |
| 260 | #else |
| 261 | QByteArray filenameBA = QFile::encodeName(filename); |
| 262 | return (utime(filenameBA.data(), nullptr) == 0); |
| 263 | #endif |
| 264 | } |
| 265 | |
| 266 | bool ensureFilePathExists(QString filenamepath) |
| 267 | { |
no test coverage detected