filesystem: Add QFSEngine for filepaths

Change-Id: Ibd0c88c69863c0877138d8cc45541530c359bd9c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-05-31 11:16:44 +02:00
parent a5d44fb32b
commit 3462bc67be
87 changed files with 2194 additions and 192 deletions

View File

@@ -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())