MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / updateTimestamp

Function updateTimestamp

launcher/FileSystem.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138bool 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
149bool ensureFilePathExists(QString filenamepath)
150{

Callers 2

ApplicationMethod · 0.85
installResourceMethod · 0.85

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected