| 77 | } |
| 78 | |
| 79 | bool updateTimestamp(const QString& filename) |
| 80 | { |
| 81 | #ifdef Q_OS_WIN32 |
| 82 | std::wstring filename_utf_16 = filename.toStdWString(); |
| 83 | return (_wutime64(filename_utf_16.c_str(), nullptr) == 0); |
| 84 | #else |
| 85 | QByteArray filenameBA = QFile::encodeName(filename); |
| 86 | return (utime(filenameBA.data(), nullptr) == 0); |
| 87 | #endif |
| 88 | } |
| 89 | |
| 90 | bool ensureFilePathExists(QString filenamepath) |
| 91 | { |
no test coverage detected