Commit 51e4e399 authored by Nicolas Fella's avatar Nicolas Fella

[kio] Mount device during stat if necessary

parent c029ae2b
Pipeline #3533 passed with stage
in 18 minutes and 45 seconds
......@@ -250,7 +250,14 @@ void KioKdeconnect::stat(const QUrl& url)
QString currentDevice = url.host();
if (!currentDevice.isEmpty()) {
SftpDbusInterface interface(currentDevice);
entry.insert(KIO::UDSEntry::UDS_LOCAL_PATH, interface.mountPoint());
if (interface.isValid()) {
entry.insert(KIO::UDSEntry::UDS_LOCAL_PATH, interface.mountPoint());
if (!interface.isMounted()) {
interface.mount();
}
}
}
statEntry(entry);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment