[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdelibs/kate/part
From:       David Faure <faure () kde ! org>
Date:       2005-04-08 9:47:53
Message-ID: 200504081147.53380.faure () kde ! org
[Download RAW message or body]

On Friday 08 April 2005 11:39, Dominik Haumann wrote:
> On Friday 08 April 2005 09:44, Christoph Cullmann wrote:
> > <zitiere wer="Dominik Haumann">
> >
> > >> +    // first del existing file if any, than copy over the file we
> > >> have +    // failure if a: the existing file could not be deleted, b:
> > >> the file
> > >> +       could not be copied
> > >> +    if ( (!KIO::NetAccess::exists( u, false, kapp->mainWidget() ) ||
> > >> +          KIO::NetAccess::del( u, kapp->mainWidget() ))
> > >> +      && KIO::NetAccess::file_copy( url(), u, perms, true, false,
> > >> +      kapp->mainWidget() ) )
> > >
> > > This is a *file copy*, where src and dst are the *same*. My only
> > > explanation
> > > is that KIO tries to authenticate two times, which always fails.
> >
> > ? src and dst are the same? url() and u are not the same, url() is the
> > concrete url of the file, u is the url with the backup prefix/suffix
> Yes, but same host, that is why I thought about authentication two times 
> (which is not possible, if the ftp only allows one at a time). But as I 
> said, I may be wrong, and make a fool out of myself ;)
Right. kio_ftp doesn't support direct ftp-to-ftp copy yet, so the datapump
must be used (a kio_ftp doing a get and another one doing a put).

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic