D21705: [NewFileIndexer] Use correct mimetype for folders, check excludeFolders
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Sun Jun 9 23:55:59 BST 2019
bruns created this revision.
bruns added reviewers: Baloo, ngraham, astippich, poboiko.
Herald added projects: Frameworks, Baloo.
Herald added a subscriber: kde-frameworks-devel.
bruns requested review of this revision.
REVISION SUMMARY
mimeTypeForFile yields the wrong type for folders, hardcode it.
In case a newly added folder is an excluded folder, avoid adding it to
the index.
TEST PLAN
$> balooctl config add ~/test/excluded
$> mkdir ~/test
$> mkdir ~/test/excluded; mkdir ~/test/included.log/
$> balooshow -x ~/test/*
'excluded' should not be in the index, 'included.log' should have
mimetype inode/directory (terms 'Minode Mdirectory').
REPOSITORY
R293 Baloo
BRANCH
cleanup
REVISION DETAIL
https://phabricator.kde.org/D21705
AFFECTED FILES
src/file/newfileindexer.cpp
To: bruns, #baloo, ngraham, astippich, poboiko
Cc: kde-frameworks-devel, LeGast00n, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190609/5c3aaeb6/attachment.html>
More information about the Kde-frameworks-devel
mailing list