forked from qt-creator/qt-creator
filesystem: Add QFSEngine for filepaths
Change-Id: Ibd0c88c69863c0877138d8cc45541530c359bd9c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1046,6 +1046,15 @@ QString LinuxDevice::userAtHost() const
|
||||
return sshParameters().userAtHost();
|
||||
}
|
||||
|
||||
Utils::FilePath LinuxDevice::rootPath() const
|
||||
{
|
||||
Utils::FilePath root;
|
||||
root.setScheme("ssh");
|
||||
root.setHost(userAtHost());
|
||||
root.setPath("/");
|
||||
return root;
|
||||
}
|
||||
|
||||
bool LinuxDevice::handlesFile(const FilePath &filePath) const
|
||||
{
|
||||
if (filePath.scheme() == "device" && filePath.host() == id().toString())
|
||||
|
||||
Reference in New Issue
Block a user