diff --git a/kio/kiokdeconnect.cpp b/kio/kiokdeconnect.cpp index 1b082a2ad..c381d69e7 100644 --- a/kio/kiokdeconnect.cpp +++ b/kio/kiokdeconnect.cpp @@ -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);