Introduce DeviceFileSystemModel

This is going to replace SftpFileSystemModel.

That's needed before planed removal of SshConnection in order
to not to use SftpSession class.

Change-Id: I97f0ffd3418f7e71819ac95048a75e4a17901c71
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-03-25 10:35:17 +01:00
parent d0e854e390
commit 6e666b3bfd
6 changed files with 397 additions and 1 deletions

View File

@@ -447,7 +447,11 @@ FilePath LinuxDevice::mapToGlobalPath(const FilePath &pathOnDevice) const
bool LinuxDevice::handlesFile(const FilePath &filePath) const
{
return filePath.scheme() == "ssh" && filePath.host() == userAtHost();
if (filePath.scheme() == "device" && filePath.host() == id().toString())
return true;
if (filePath.scheme() == "ssh" && filePath.host() == userAtHost())
return true;
return false;
}
CommandLine LinuxDevicePrivate::fullLocalCommandLine(const CommandLine &remoteCommand,