MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / copyFileAttributes

Function copyFileAttributes

launcher/FileSystem.cpp:278–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278bool copyFileAttributes(QString src, QString dst)
279{
280#ifdef Q_OS_WIN32
281 auto attrs = GetFileAttributesW(src.toStdWString().c_str());
282 if (attrs == INVALID_FILE_ATTRIBUTES)
283 return false;
284 return SetFileAttributesW(dst.toStdWString().c_str(), attrs);
285#else
286 Q_UNUSED(src);
287 Q_UNUSED(dst);
288#endif
289 return true;
290}
291
292// needs folders to exists
293void copyFolderAttributes(QString src, QString dst, QString relative)

Callers 1

copyFolderAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected