[kio] Mount device during stat if necessary
This commit is contained in:
parent
c029ae2bc2
commit
51e4e399f4
1 changed files with 8 additions and 1 deletions
|
@ -250,7 +250,14 @@ void KioKdeconnect::stat(const QUrl& url)
|
||||||
QString currentDevice = url.host();
|
QString currentDevice = url.host();
|
||||||
if (!currentDevice.isEmpty()) {
|
if (!currentDevice.isEmpty()) {
|
||||||
SftpDbusInterface interface(currentDevice);
|
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);
|
statEntry(entry);
|
||||||
|
|
Loading…
Reference in a new issue