--nextPart3346891.JjdBr1pixW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I stumbled over a problem with KStandardDirs: I have a localdir Resource defined for korganizer with the absolute path "/root/.kde/share/apps/korganizer/cal_dir" (running as root user) In ResourceLocalDir::doLoad() there is a check if ( !KStandardDirs::exists( dirName ) ) { which says my directory does not exist (but it does). Looking inside KStandardDirs::exists() I find that it only recognizes a=20 directory if it ends with a "/" ... if (fullPath.at(fullPath.length() - 1) !=3D '/') { if (S_ISREG( buff.st_mode )) return true; } else if (S_ISDIR( buff.st_mode )) return true; =20 The docu in the header file says: /** * Checks for existence and accessability. * Faster than creating a QFileInfo first. * @param fullPath the path to check * @return true if the directory exists */ =20 So the docu says nothing about this behaviour. Why is this done it that way= ? Is this really meant to check only for directories (which it currently=20 doesn't) ?=20 I would assume that it just checks for existence, not also for the type. =2D-=20 Best regards/Sch=F6ne Gr=FC=DFe Martin () ascii ribbon campaign - against html mail=20 /\ - against microsoft attachments Some operating systems are called 'user friendly', Linux however is 'expert friendly'. --nextPart3346891.JjdBr1pixW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBhM8vUeHBRvgua64RAnbKAJ9YgTg4SbfntJFaJYis0hDh/PAv7wCbBQxj gieZr+bFupRnJYNEVdNLTR4= =Ifvc -----END PGP SIGNATURE----- --nextPart3346891.JjdBr1pixW--