The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.Binary := true; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := '';
lista.clear(); FtpClient1.Connect; FtpClient1.Cwd; FtpClient1.Ls; lista.LoadFromFile('listado.txt') For i:=0 to lista.Count-1 do begin memo1.lines.add('Fichero ' + lista[i]); end; FtpClient1.Quit; --> lista has 0 elements. Regards. ----- Original Message ----- From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Monday, June 27, 2005 2:17 PM Subject: Re: [twsocket] FTPClient > Carlos Lalín wrote: > > I'm sorry but this is like that. The files are there but the file is > > empty. > > The conection doesn't produce error. > > Can you show some lines of code? > > Arno Garrels > > > Carlos. > > > > ----- Original Message ----- > > From: "Arno Garrels" <[EMAIL PROTECTED]> > > To: "ICS support mailing" <twsocket@elists.org> > > Sent: Monday, June 27, 2005 1:18 PM > > Subject: Re: [twsocket] FTPClient > > > > > >> Carlos Lalín wrote: > >>> After doing Ls, the file is empty > >> I don't think it's possible *if the remote directory was not > >> empty. You *may get an error in OnRequestDone if it was empty > >> and file listing was therefore not sent. > >> > >> Arno Garrels > >> > >> Carlos Lalín wrote: > >>> Hello, > >>> I use the component FTPCliente to download files from a server. I > >>> indicate the name of the file where appear the name of the files to > >>> download. After doing Ls, the file is empty when with another program > >>> FTP I see that there are files. To what can it owe? > >>> > >>> Thank you. > >>> > >>> Regards. > >>> Carlos. > >> > >> -- > >> To unsubscribe or change your settings for TWSocket mailing list > >> please goto http://www.elists.org/mailman/listinfo/twsocket > >> Visit our website at http://www.overbyte.be > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be