Fix directory based search.
ClosedPublic

Authored by xuetianweng on Apr 28 2017, 8:54 AM.

Details

Summary

canonicalPath() does not include the file name, but only the directory
name. Should use canonicalFilePath() instead.

Test Plan

Manually test with baloosearch

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
xuetianweng created this revision.Apr 28 2017, 8:54 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 28 2017, 8:54 AM

+1, I assume there are no tests for this functionality already present?

I saw there's filesearchstoretest.cpp in autotests/integration, but CMakeLists.txt doesn't build it. I guess this test might not work yet.

lbeltrame accepted this revision.Apr 29 2017, 6:53 AM

Looks fairly harmless to me. Perhaps wait one or two days more to see if anyone chimes in.

This revision is now accepted and ready to land.Apr 29 2017, 6:53 AM

Any reason why this hasn't been committed yet?

This revision was automatically updated to reflect the committed changes.