| 289 | } |
| 290 | |
| 291 | bool copyFileAttributes(QString src, QString dst) |
| 292 | { |
| 293 | #ifdef Q_OS_WIN32 |
| 294 | auto attrs = GetFileAttributesW(src.toStdWString().c_str()); |
| 295 | if (attrs == INVALID_FILE_ATTRIBUTES) |
| 296 | return false; |
| 297 | return SetFileAttributesW(dst.toStdWString().c_str(), attrs); |
| 298 | #endif |
| 299 | return true; |
| 300 | } |
| 301 | |
| 302 | // needs folders to exists |
| 303 | void copyFolderAttributes(QString src, QString dst, QString relative) |
no outgoing calls
no test coverage detected