LocalLister: always append trailing slash if it's a folder
ClosedPublic

Authored by elvisangelaccio on Feb 24 2018, 5:37 PM.

Details

Summary

We were adding the trailing slash only when recursively calling scan(),
but we need to do the same also when calling Folder::append().

Test Plan
  1. filelight ~/home/foo/bar
  2. go up to ~/home/foo
  3. check whether /home/foo/bar has the trailing slash in the relevant map tooltips.

Diff Detail

Repository
R352 Filelight
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Restricted Application added a subscriber: kde-utils-devel. · View Herald TranscriptFeb 24 2018, 5:37 PM
elvisangelaccio requested review of this revision.Feb 24 2018, 5:37 PM
sitter accepted this revision.Feb 26 2018, 11:30 AM

Meh. The entire codebase seems to often be guessing if it needs to append a slash or not. It's fairly dishearting.

Change looks fine. All code based on m_name of the Folder should be fine with this at a glance.

This revision is now accepted and ready to land.Feb 26 2018, 11:30 AM
This revision was automatically updated to reflect the committed changes.