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

Function copyFolderAttributes

launcher/FileSystem.cpp:303–311  ·  view source on GitHub ↗

needs folders to exists

Source from the content-addressed store, hash-verified

301
302// needs folders to exists
303void copyFolderAttributes(QString src, QString dst, QString relative)
304{
305 auto path = PathCombine(src, relative);
306 QDir dsrc(src);
307 while ((path = QFileInfo(path).path()).length() >= src.length()) {
308 auto dst_path = PathCombine(dst, dsrc.relativeFilePath(path));
309 copyFileAttributes(path, dst_path);
310 }
311}
312
313/**
314 * @brief Copies a directory and it's contents from src to dest

Callers 1

operator()Method · 0.85

Calls 4

PathCombineFunction · 0.85
QFileInfoClass · 0.85
copyFileAttributesFunction · 0.85
pathMethod · 0.45

Tested by

no test coverage detected