forked from qt-creator/qt-creator
ProjectExplorer: Introduce a IDevice::filePath
Same function as mapToGlobalPath, but operating on a QString specifying the local path part. It's the majority use case and arguably the 'right thing' to use instead of a full FilePath that can refer to arbitrary devices. Change-Id: Ifc8bd340e2e8859fe549f5724eb94269f587c418 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -262,7 +262,7 @@ void QnxDeployQtLibrariesDialog::startCheckDirProcess()
|
||||
m_state = CheckingRemoteDirectory;
|
||||
m_ui->deployLogWindow->appendPlainText(tr("Checking existence of \"%1\"")
|
||||
.arg(fullRemoteDirectory()));
|
||||
m_checkDirProcess.setCommand({m_device->mapToGlobalPath("test"),
|
||||
m_checkDirProcess.setCommand({m_device->filePath("test"),
|
||||
{"-d", fullRemoteDirectory()}});
|
||||
m_checkDirProcess.start();
|
||||
}
|
||||
@@ -272,7 +272,7 @@ void QnxDeployQtLibrariesDialog::startRemoveDirProcess()
|
||||
QTC_CHECK(m_state == CheckingRemoteDirectory);
|
||||
m_state = RemovingRemoteDirectory;
|
||||
m_ui->deployLogWindow->appendPlainText(tr("Removing \"%1\"").arg(fullRemoteDirectory()));
|
||||
m_removeDirProcess.setCommand({m_device->mapToGlobalPath("rm"),
|
||||
m_removeDirProcess.setCommand({m_device->filePath("rm"),
|
||||
{"-rf", fullRemoteDirectory()}});
|
||||
m_removeDirProcess.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user