[kio] Mount device during stat if necessary

This commit is contained in:
Nicolas Fella 2019-05-14 20:36:44 +00:00 committed by Albert Vaca
parent e4d81ff97b
commit 781c0004b8

View file

@ -216,7 +216,14 @@ void KioKdeconnect::stat(const QUrl& url)
QString currentDevice = url.host();
if (!currentDevice.isEmpty()) {
SftpDbusInterface interface(currentDevice);
if (interface.isValid()) {
entry.insert(KIO::UDSEntry::UDS_LOCAL_PATH, interface.mountPoint());
if (!interface.isMounted()) {
interface.mount();
}
}
}
statEntry(entry);