KIO::del without calling KIO::stat?

David Faure faure at
Wed Jul 6 16:30:26 BST 2005

On Wednesday 06 July 2005 17:26, Reinhold Kainhofer wrote:
> In the groupdav resource, I implement deleting an event from the groupware 
> server by a simple KIO::del( url, false, false ), which does a normal dav 
> delete on the server. Now the problem is that the DeleteJob first checks if 
> the url exists by calling KIO::stat. 
> The groupdav spec, however, does not require any groupdav server to even 
> support such a propfind request, so this violates the groupdav spec (and 
> actually fails with some GroupDAV implementations!). The client shall just 
> send the http delete to the server, and from the response code, one can see 
> the success anyway (and by the strong ETag matching, events are only deleted 
> if they are unchanged on the server).
> So, is there any way to prevent KIO::del from calling KIO::stat before sending 
> the delete?

del() is for file or directories, so it has to find out what to do first, and it lists
directories recursively, etc.

If you don't need the recursive listing, you should use KIO::file_delete( url ) instead.

David Faure, faure at, sponsored by Trolltech to work on KDE,
Konqueror (, and KOffice (

More information about the kde-core-devel mailing list