| 25 | } |
| 26 | |
| 27 | QString GetBasenameUnix(const QString& path) |
| 28 | { |
| 29 | if (path == "/") |
| 30 | return path; |
| 31 | |
| 32 | QStringList pathParts = path.split("/", Qt::SkipEmptyParts); |
| 33 | if (pathParts.isEmpty()) |
| 34 | return "/"; |
| 35 | return pathParts[pathParts.size()-1]; |
| 36 | } |
| 37 | |
| 38 | |
| 39 | QString GetRootPathWindows(const QString& path) |
no test coverage detected