diff options
author | Marcus Tillmanns <[email protected]> | 2024-04-02 12:31:48 +0200 |
---|---|---|
committer | Marcus Tillmanns <[email protected]> | 2024-04-04 08:32:59 +0000 |
commit | c03fa4dbad40bee513da339af74ea7d99272b456 (patch) | |
tree | f8c80c2cd0ea484e0f749ef42dd5d7256bdf01fa /src/plugins/docker/dockerdevice.h | |
parent | 3067f57905738bc6575f9173d860e6ace2380c99 (diff) |
ProjectExplorer: Add Device::canMount
Change-Id: Icde98f845c3fe303d9461a0cbb0946d1ce9c8b00
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/docker/dockerdevice.h')
-rw-r--r-- | src/plugins/docker/dockerdevice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/docker/dockerdevice.h b/src/plugins/docker/dockerdevice.h index ee4334b55b6..e08a60cbc3c 100644 --- a/src/plugins/docker/dockerdevice.h +++ b/src/plugins/docker/dockerdevice.h @@ -68,6 +68,11 @@ public: Utils::FilePath rootPath() const override; Utils::FilePath filePath(const QString &pathOnDevice) const override; + bool canMount(const Utils::FilePath &filePath) const override + { + return !filePath.needsDevice() || filePath.isSameDevice(rootPath()); + } + bool handlesFile(const Utils::FilePath &filePath) const override; bool ensureReachable(const Utils::FilePath &other) const override; Utils::expected_str<Utils::FilePath> localSource(const Utils::FilePath &other) const override; |