forked from qt-creator/qt-creator
Docker: Implement symLinkTarget() for non-local access
Change-Id: I895d7e190a556ee582e7c767e7045362e9a7adce Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user