Trash kioslave

David Faure faure at kde.org
Tue May 24 20:15:50 BST 2005


On Tuesday 24 May 2005 20:26, Renchi Raju wrote:
> 
> The trash kioslave currently allows only trashing files/folders which have 
> an absolute path. It would be nice to allow it to trash files/folders 
> from kioslaves with class local.

Wrong list for feature requests, but maybe you want to implement the following? :)
I would say it's up to the caller (are you talking about konqueror?) to use 
KFileItem::mostLocalURL or KIO::NetAccess::mostLocalURL to transform media:/foo 
and system:/bar into local paths before calling kio_trash. Not all "class local" kioslaves
can have their URLs resolved to local paths, IIRC, so this can only be done
for those where mostLocalURL works.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list