Docker: Implement symLinkTarget() for non-local access

Change-Id: I895d7e190a556ee582e7c767e7045362e9a7adce
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2021-07-19 13:45:31 +02:00
parent 9e015dbaf7
commit 4895eb346a

View File

@@ -1258,8 +1258,9 @@ FilePath DockerDevice::symLinkTarget(const FilePath &filePath) const
return {};
return mapToGlobalPath(target);
}
QTC_CHECK(false);
return {};
const QString output = d->outputForRunInShell({"readlink", {"-n", "-e", filePath.path()}});
return output.isEmpty() ? FilePath() : filePath.withNewPath(output);
}
FilePaths DockerDevice::directoryEntries(const FilePath &filePath,