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

List:       kde-devel
Subject:    Re: Konqueror ftp
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-07-02 22:31:16
[Download RAW message or body]

On Tuesday 03 July 2001 01:11, Malte Starostik wrote:
> That'd be nice indeed, but is it possible with the KIO architecture? i.e. 
> when copying a file
> if srcJob.protocol == FTP && destJob.protocol == FTP; then
> 	if initFXP; then
> 		fxpCopy
> 	else
> 		normalCopy
> 	fi
> else
> 	normalCopy
> fi
> 
> where initFXP would mean to try FXP with active FTP on the source job and 
> passive on the destination job and if that fails try it the other way round 
> (or start with passive mode on the source job and active mode on the dest 
> job, whatever).
> 
> Hmm, or maybe the above scheme could be generalized a little so that a file 
> copy always looks like
> if canDirectCopy; then
> 	doDirectCopy
> else
> 	normalCopy
> fi
> 
> In that case, FXP support could be built on top of that as well as in the 
> fictional scp IOSlave, a "direct copy" would be to do "ssh hostname cp src 
> dest" instead of retrieving the source file over scp and writing it back. Of 
> course in the scp/ssh case that would only be allowed (canDirectCopy above 
> returns true) if both the source and the destination file are on the same 
> host.
> For a NetWare mounted share direct copy could be implemented by means of 
> "ncopy" etc.

Yes, it looks quite possible to extend CopyJob in such ways.

> > > (this might be considered a bug, I'm not sure I havn't read the RFC on
> > > FTP)
> >
> > Put this in ~/.kde/share/config/kio_ftprc :
> > [<default>]
> > MarkPartial=false
> IMHO this should be the default, as the usual anonymous-upload FTP server 
> won't allow renaming the file afterwards. Am I missing the point here?

It's already "false" for anonymous-FTP uploads. Just not for login-FTP.

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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