| 374 | } |
| 375 | |
| 376 | void FileAccess::addPath(const QString& txt, bool reinit) |
| 377 | { |
| 378 | if(!isLocal()) |
| 379 | { |
| 380 | QUrl url = m_url.adjusted(QUrl::StripTrailingSlash); |
| 381 | url.setPath(url.path() + '/' + txt); |
| 382 | m_url = url; |
| 383 | |
| 384 | if(reinit) |
| 385 | setFile(url); // reinitialize |
| 386 | } |
| 387 | else |
| 388 | { |
| 389 | QString slash = (txt.isEmpty() || txt[0] == '/') ? QString() : u8"/"; |
| 390 | setFile(absoluteFilePath() + slash + txt); |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | #if HAS_KFKIO && !defined AUTOTEST |
| 395 | /* Filetype: |
no test coverage detected