| 276 | } |
| 277 | |
| 278 | bool copyFileAttributes(QString src, QString dst) |
| 279 | { |
| 280 | #ifdef Q_OS_WIN32 |
| 281 | auto attrs = GetFileAttributesW(src.toStdWString().c_str()); |
| 282 | if (attrs == INVALID_FILE_ATTRIBUTES) |
| 283 | return false; |
| 284 | return SetFileAttributesW(dst.toStdWString().c_str(), attrs); |
| 285 | #else |
| 286 | Q_UNUSED(src); |
| 287 | Q_UNUSED(dst); |
| 288 | #endif |
| 289 | return true; |
| 290 | } |
| 291 | |
| 292 | // needs folders to exists |
| 293 | void copyFolderAttributes(QString src, QString dst, QString relative) |
no outgoing calls
no test coverage detected