Introduce KFileItemListProperties::isFile()
ClosedPublic

Authored by elvisangelaccio on May 6 2018, 6:31 PM.

Details

Summary

This method can be used to check whether a list of selected
URLs contains only files (and zero folders).

The implementation matches the isDirectory() method and relies
on the values returned by KFileItem::isFile().

Unit test is updated accordingly.

Diff Detail

Repository
R241 KIO
Branch
kfileitemprops-isfile (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
elvisangelaccio created this revision.May 6 2018, 6:31 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMay 6 2018, 6:31 PM
elvisangelaccio requested review of this revision.May 6 2018, 6:31 PM
dfaure accepted this revision.May 6 2018, 9:01 PM
This revision is now accepted and ready to land.May 6 2018, 9:01 PM
This revision was automatically updated to reflect the committed changes.
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald TranscriptMay 26 2018, 4:45 PM