MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / copyFileAttributes

Function copyFileAttributes

launcher/FileSystem.cpp:291–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291bool copyFileAttributes(QString src, QString dst)
292{
293#ifdef Q_OS_WIN32
294 auto attrs = GetFileAttributesW(src.toStdWString().c_str());
295 if (attrs == INVALID_FILE_ATTRIBUTES)
296 return false;
297 return SetFileAttributesW(dst.toStdWString().c_str(), attrs);
298#endif
299 return true;
300}
301
302// needs folders to exists
303void copyFolderAttributes(QString src, QString dst, QString relative)

Callers 1

copyFolderAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected