| 136 | } |
| 137 | |
| 138 | bool updateTimestamp(const QString& filename) |
| 139 | { |
| 140 | #ifdef Q_OS_WIN32 |
| 141 | std::wstring filename_utf_16 = filename.toStdWString(); |
| 142 | return (_wutime64(filename_utf_16.c_str(), nullptr) == 0); |
| 143 | #else |
| 144 | QByteArray filenameBA = QFile::encodeName(filename); |
| 145 | return (utime(filenameBA.data(), nullptr) == 0); |
| 146 | #endif |
| 147 | } |
| 148 | |
| 149 | bool ensureFilePathExists(QString filenamepath) |
| 150 | { |
no test coverage detected