Menu

#937 ::ftp::Get returns "" in mode inline + error

open
ftp (55)
5
2007-07-30
2007-07-30
Anonymous
No

contrary to the man-page ::ftp::Get returns the empty string when in mode $ftp(inline) and an error occurs.

-------------------------------------
% packa requi ftp
2.4.8
% set conn [ftp::Open localhost user pass]
0
% set erg [ftp::Get $conn not_existing_file -variable var]
error error | E: Error retrieving file "not_existing_file"!:
error invalid command name "ftp::Open"
error while executing
error "ftp::Open localhost user pass"
% puts $erg

%
------------------------------------
This is 7 line before the end of ftp::Get

2 lines after that:
CloseDataConn $s is only called if $ftp(inline) is false.
Is this correct?

In the normal configuration I am unable to retrieve the info about the error. Am I suppost to redefine the DisplayMsg for this?

thanks for your efforts
Albrecht Mucha MediTec GmbH
a.mucha at mdtec . de

Discussion