| 240 | } |
| 241 | |
| 242 | bool updateTimestamp(const QString& filename) |
| 243 | { |
| 244 | #ifdef Q_OS_WIN32 |
| 245 | std::wstring filename_utf_16 = filename.toStdWString(); |
| 246 | return (_wutime64(filename_utf_16.c_str(), nullptr) == 0); |
| 247 | #else |
| 248 | QByteArray filenameBA = QFile::encodeName(filename); |
| 249 | return (utime(filenameBA.data(), nullptr) == 0); |
| 250 | #endif |
| 251 | } |
| 252 | |
| 253 | bool ensureFilePathExists(QString filenamepath) |
| 254 | { |
no test coverage detected