Diffusion Baloo 2452ce28193a

[Balooctl] remove directory parent check

Authored by ngraham on Sep 30 2018, 1:16 AM.

Description

[Balooctl] remove directory parent check

Summary:
balooctl add includeFolders/excludeFolders was checking for parent directories before allowing the user to add a subdirectory. This is unnecessary since Baloo itself supports the logic of (for example) excluding ~/foo but including ~/foo/bar. Removing the check solves the problem and fixes 396535.

BUG: 396535
FIXED-IN: 5.51

Test Plan:

mkdir ~/test1 ~/test2 ~/test1-test ~/test1-test/foo
balooctl config add excludeFolders ~/test1
balooctl config add excludeFolders ~/test2
balooctl config add excludeFolders ~/test1-test
balooctl config add includeFolders ~/test1-test/foo

If it worked, you don't get any errors.

Reviewers: Baloo, Dolphin, bruns, Frameworks, cfeck

Reviewed By: Baloo, bruns

Subscribers: smithjd, anthonyfieroni, kde-frameworks-devel

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D15583

Details

Committed
ngrahamSep 30 2018, 1:17 AM
Reviewer
Baloo
Differential Revision
D15583: [Balooctl] remove directory parent check
Parents
R293:8a0b8270dcd3: Allow removing non-existent folders from include and exclude lists
Branches
Unknown
Tags
Unknown