forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user