Skip to content

KFileItem: use passed mimeType to determine isDir

Méven Car requested to merge (removed):ccbug-401579 into master

CCBUG: 401579

This allows the KFileItem ctor with mimetype to skip any stat call to determine isDir() solely based on passed mimetype which in turn allows to determine iconName without any FS access.
This allows the KFileItem ctor with mimetype to act as if KFileItem::SkipMimeTypeFromContent was set except it will allow to have mimetype for directories.

Edited by Méven Car

Merge request reports

Loading