| 187 | } |
| 188 | |
| 189 | KDevelop::Path DockerRuntime::pathInHost(const KDevelop::Path& runtimePath) const |
| 190 | { |
| 191 | Path ret; |
| 192 | const Path projectsDir(DockerRuntime::s_settings->projectsVolume()); |
| 193 | if (runtimePath==projectsDir || projectsDir.isParentOf(runtimePath)) { |
| 194 | ret = projectRelPath(projectsDir, runtimePath, true); |
| 195 | } else { |
| 196 | const Path buildDirs(DockerRuntime::s_settings->buildDirsVolume()); |
| 197 | if (runtimePath==buildDirs || buildDirs.isParentOf(runtimePath)) { |
| 198 | ret = projectRelPath(buildDirs, runtimePath, false); |
| 199 | } else |
| 200 | ret = KDevelop::Path(m_userMergedDir, KDevelop::Path(QStringLiteral("/")).relativePath(runtimePath)); |
| 201 | } |
| 202 | qCDebug(DOCKER) << "pathInHost" << ret << runtimePath; |
| 203 | return ret; |
| 204 | } |
| 205 | |
| 206 | KDevelop::Path DockerRuntime::pathInRuntime(const KDevelop::Path& localPath) const |
| 207 | { |