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

Function copyFolderAttributes

launcher/FileSystem.cpp:293–301  ·  view source on GitHub ↗

needs folders to exists

Source from the content-addressed store, hash-verified

291
292// needs folders to exists
293void copyFolderAttributes(QString src, QString dst, QString relative)
294{
295 auto path = PathCombine(src, relative);
296 QDir dsrc(src);
297 while ((path = QFileInfo(path).path()).length() >= src.length()) {
298 auto dst_path = PathCombine(dst, dsrc.relativeFilePath(path));
299 copyFileAttributes(path, dst_path);
300 }
301}
302
303/**
304 * @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