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

Thiago Macieira thiago at kde.org
Tue Feb 28 09:55:48 GMT 2006


Nicolas Goutte wrote:
>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?

No. For KDE4, use QDir stuff. If you don't find an equivalent (I don't 
think there is an equivalent of "rm -rf" there), let me know.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

3. Ac seo woruld wearð geborod, swá se Scieppend cwæð "Gewurde Unix" and 
wundor fremede and him "Unix" genemned, þæt is se rihtendgesamnung.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060228/500f3512/attachment.sig>


More information about the kde-core-devel mailing list