KStandardDirs behaviour when finding directories

Dmitry Suzdalev dimsuz at gmail.com
Mon Jul 30 13:41:44 BST 2007


2007/7/30, Josef Spillner <spillner at kde.org>:
> To be fair, findDirs() expects and accepts directory strings.
Yes, I saw that. But IMO it's more convinient to use locate for
finding single known dir.

> It seems that KStandardDirs's exists() method treats directories and files
> equally well if the directories have a "/" appended. Therefore it would make
> sense to document that behaviour.
Yes, that's what I thought too after finding this "/" thing in exists() :)

Dmitry.




More information about the kde-core-devel mailing list