Fix ignore path support. Fix crash when we load root path
-
@mlaurent this appears to have broken the CI. Can you take a look and fix it? Thanks!
-
@mlaurent ^^
-
It seems
m_trees
stores the paths that are to be ignored, rather than the paths to be scanned. I've temporarily modified the LocalLister constructor to print each entry pointed by m_trees at the end. With my Downloads directory already in my do not scan list, the output is as follows:m_trees->folder: "/dev/" m_trees->folder: "/proc/" m_trees->folder: "/sys/" m_trees->folder: "/root/" m_trees->folder: "/run/" m_trees->folder: "/run/lock/" m_trees->folder: "/tmp/" m_trees->folder: "/home/" m_trees->folder: "/boot/efi/" m_trees->folder: "/run/user/1000/" m_trees->folder: "/run/user/1000/doc/"
When I revert line 46, I get this output (which works):
m_trees->folder: "/dev/" m_trees->folder: "/proc/" m_trees->folder: "/sys/" m_trees->folder: "/root/" m_trees->folder: "/home/efe/Downloads/" m_trees->folder: "/run/" m_trees->folder: "/run/lock/" m_trees->folder: "/tmp/" m_trees->folder: "/home/" m_trees->folder: "/boot/efi/" m_trees->folder: "/run/user/1000/" m_trees->folder: "/run/user/1000/doc/"
Therefore,
ignorePath.startsWith(path)
looks reasonable to me.Edited by Efe Çiftci -
Users are reporting that ignore path functionality is broken (473951) for versions containing this commit. On my own computer, I can also verify that the previous behavior without this commit is correct.
So could we revert this commit?
-
mentioned in merge request !98 (merged)
-
mentioned in commit 10f1fbf0
-
mentioned in commit 3a50f3da
-
🐧 @sittermentioned in merge request !99 (merged)
-
mentioned in commit ca940302
-
mentioned in merge request plasma/kwin!4820 (merged)