File fix-mtp-paste-with-KF5-5.25.diff of Package kio-extras5

diff --git a/mtp/kio_mtp.cpp b/mtp/kio_mtp.cpp
index 8a9b26e..7003968 100644
--- a/mtp/kio_mtp.cpp
+++ b/mtp/kio_mtp.cpp
@@ -347,6 +347,14 @@ void MTPSlave::listDir(const QUrl &url)
                     entry.clear();
                 }
 
+                // We also need a writable UDSEntry for "."
+                KIO::UDSEntry entry;
+                entry.insert(KIO::UDSEntry::UDS_NAME, QStringLiteral("."));
+                entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
+                entry.insert(KIO::UDSEntry::UDS_SIZE, 0);
+                entry.insert(KIO::UDSEntry::UDS_ACCESS, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IXOTH);
+                listEntry(entry);
+
                 finished();
 
                 qCDebug(LOG_KIO_MTP) << "[SUCCESS] Files";
openSUSE Build Service is sponsored by