| 57 | } |
| 58 | |
| 59 | QString GetRootPathUnix(const QString& path) |
| 60 | { |
| 61 | if (path == "/") |
| 62 | return path; |
| 63 | |
| 64 | int secondSlashIndex = path.indexOf('/', 1); |
| 65 | if (secondSlashIndex != -1) |
| 66 | return path.left(secondSlashIndex); |
| 67 | |
| 68 | return path; |
| 69 | } |
| 70 | |
| 71 | QString GetParentPathWindows(const QString& path) |
| 72 | { |
no test coverage detected