PATCH: Extended KFileCopyJob
Julian Rockey
linux at jrockey.com
Mon May 6 00:54:51 BST 2002
Before the 3.0 release I submitted this patch to extend the function of
KFileCopyJob to allow copy jobs to automatically create directories if
needed. For example, when copying
file:/my/url/file.txt
to
file:/your/other/url/newfile.txt
if the directories other and url don't exist, this function will (optionally,
via the autoCreateDirs flag in the constructor) automatically create them
instead of returning an error
I submit the patch in the form of a subclass of KFileCopyJob (I use this class
in my KFS application). It would need tidying up (and a proper K name) before
including it. Alternatively instead of using a subclass I could merge the
changes directly into KFileCopyJob (being careful about BC of course).
Depending on which method's used, a KIO:: helper function would be useful too.
At this stage I'm interested in any comments?
Julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kfsfilecopyjob.cpp
Type: text/x-c++src
Size: 6147 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020506/cf1237ae/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kfsfilecopyjob.h
Type: text/x-chdr
Size: 3414 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020506/cf1237ae/attachment.h>
More information about the kde-core-devel
mailing list