Page 1 of 1

Problems with tIpClientFtp class - xharbour rev 9656

Posted: Mon Jan 21, 2013 3:38 pm
by Marco Turco
Hi all,
I always succesfully used the tIpClientFtp xharbour class to manage ftp connections.
Now I updated my xharbour 1.2.1 from rev. 6717 to rev. 9656 provided with FWH Dec 2012 and any ftp connection doesn't runs anymore,
for example, this function I made to delete a remote file require now 20 second instead of the 2-3 with the previous xHarbour version.
Any ideas ? Thanks in advance.

-----

FUNCTION FtpEraseFile(cFtpSite,cFtpUser,cFtpPassword,cFtpFileToDelete)

local cUrl,oFtp,aDirs
local lTrace

lTrace:=.f.

cFtpUser:=charrepl("@",@cFtpUser,"+")
cUrl:="ftp://"+cFtpUser+":"+cFtpPassword+"@"+cFtpSite
oFtp:=tIPClientFtp():New(cUrl,lTrace)
oFtp:nConnTimeout:=60000
if .not. oFtp:open()
msginfo("ftp error "+oFtp:LastErrorMessage())
return(.f.)
endif

oFtp:dele(cFtpFileToDelete)
oFtp:Close()
RETURN .t.

Re: Problems with tIpClientFtp class - xharbour rev 9656

Posted: Sat May 15, 2021 1:16 am
by goosfancito
Have you managed to solve it?