Questions on the new KIO::FileJob API

David Faure faure at kde.org
Wed May 7 00:29:21 BST 2008


On Monday 05 May 2008, nf2 wrote:
> > Obviously FileProtocol::open does the same, it creates when called with QIODevice::WriteOnly.
> 
> Currently it fails with KIO::ERR_DOES_NOT_EXIST. That's why i am asking. 

This sounds strange, because then I don't see how the application is supposed to create new files
(over kio, without writing data to it; using an empty put() job seems very convoluted).

> True, if we mimic QFile behavior then it should create the file.
 
Yes. But better check with Allan Sandfeld Jensen <kde at carewolf.com> who wrote this stuff.

-- 
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