[PATCH] Add a removeDir function to KDE 3.5.x

Stephan Kulow coolo at kde.org
Tue Feb 28 08:58:54 GMT 2006

Am Dienstag, 28. Februar 2006 09:28 schrieb Nicolas Goutte:
> On Tuesday 28 February 2006 09:22, Stephan Kulow wrote:
> > Am Dienstag, 28. Februar 2006 09:12 schrieb Nicolas Goutte:
> > > I have chosen to add it to KStandardDirs as there is
> > > KStandardDirs::makeDirs and also other functions using the
> > > opendir/readdir/ closedir functions.
> >
> > It for sure does not fit in that class. You are not supposed to delete a
> > Standard KDE Dir. My suggestion: make this a global function in namespace
> > KDE for KDE4 and a file static function to KTempDir in KDE 3.5.2.
> Ah, yes! I had not thought that some people could take it as invitation to
> delete standard directories.
> As for KDE4, should be makeDir be moved too?

I suppose so. I have unfortunately little time for KDE4 development atm, so 
I'm not sure about the actual namespace to use though. Perhaps "KDE" is too 
general? I'm unable to come up with something better though - but we're 
fortunately not alone on this list :)
BTW: if you want to be a good developer, you also add a test cases that proves 
you catched all cases you wanted to catch - to be sure other platforms catch 
them too for one.

Greetings, Stephan

More information about the kde-core-devel mailing list