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

List:       kde-commits
Subject:    Re: kdelibs/kate/part
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2005-04-08 9:39:10
Message-ID: 200504081139.11004.dhdev () gmx ! de
[Download RAW message or body]

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

-- 
Dominik
[prev in list] [next in list] [prev in thread] [next in thread] 

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