needs folders to exists
| 301 | |
| 302 | // needs folders to exists |
| 303 | void 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 |
no test coverage detected