[system/kio-snapshot] kioworker: kioworker/filesnapshots: re-enable modification time filtering, except for directories

Bharadwaj Raju <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 2acf79b5253ccda06ffd096ce9d2ec1b943680b5 by Bharadwaj Raju.
Committed on 22/07/2026 at 07:06.
Pushed by bharadwaj-raju into branch 'master'.

kioworker/filesnapshots: re-enable modification time filtering, except for directories

M  +1    -1    kioworker/filesnapshots.cpp

https://invent.kde.org/system/kio-snapshot/-/commit/2acf79b5253ccda06ffd096ce9d2ec1b943680b5

diff --git a/kioworker/filesnapshots.cpp b/kioworker/filesnapshots.cpp
index 9f034bc..95861e2 100644
--- a/kioworker/filesnapshots.cpp
+++ b/kioworker/filesnapshots.cpp
@@ -86,7 +86,7 @@ KIO::WorkerResult FileSnapshotsProtocol::listDir(const QUrl &url)
     QList<BtrfsSnapshots::FileSnapshot> snapshotsFiltered;
     for (qsizetype i = 0; i < snapshots.size(); i++) {
         const BtrfsSnapshots::FileSnapshot &info = snapshots.at(i);
-        if (true || i == 0 || snapshots.at(i - 1).modified != info.modified || snapshots.at(i - 1).modified != info.modified) {
+        if (currentInfo.isDir() || i == 0 || snapshots.at(i - 1).modified != info.modified || snapshots.at(i - 1).modified != info.modified) {
             snapshotsFiltered << info;
         }
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.