needs folders to exists
| 291 | |
| 292 | // needs folders to exists |
| 293 | void 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 |
no test coverage detected