diff --git a/kio/kiokdeconnect.cpp b/kio/kiokdeconnect.cpp index 9c85c178c..738b6ad4e 100644 --- a/kio/kiokdeconnect.cpp +++ b/kio/kiokdeconnect.cpp @@ -216,7 +216,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);