[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KStandardDirs behaviour when finding directories
From: Allen Winter <winter () kde ! org>
Date: 2007-07-30 16:08:47
Message-ID: 200707301208.47125.winter () kde ! org
[Download RAW message or body]
On Monday 30 July 2007 11:48:59 am Martin Koller wrote:
> On Monday 30 July 2007, Dmitry Suzdalev wrote:
>
> > It finds this path only when I write:
> >
> > QString path = KStandardDirs::locate("appdata", "SomeDir/");
> >
> > i.e. with slash appended.
> >
> > So is this a bug or a feature?
> > If this is a feature then it should be documented somewhere in
> > KStandardDirs apidox.
> > But honestly I would expect the first version to work :)
>
> I stumbled over the same problem but from the users side, as in korganizer one
> can enter a directory for a resource.
> See my mail in the archive from 2004(!), which was silently ignored...
> http://lists.kde.org/?l=kde-core-devel&m=109922377513277&w=2
>
Why not use the QDir and QFileInfo classes to help here?
For example, use QFIleInfo::IsDir() to determine if a directory?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic