> Is there an easier way to read a directory? Yes, forget the event. Use the file. A FTP server send his directory list just as a simple file. See FtpTst demo.
> Is there a simple demo which demonstrates browsing in a ftp > directory structur? I think it´s a hard way > to 'decode' all the lines like this one: > "-rw-r--r-- 1 moelski moelski 18808 May 15 16:04 Historie.rtf" No demo included with ICS. But this has been discussed a few times in the past. Use the mailing list archive to search for that topic. Link is at the "support" page at ICS website. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be ----- Original Message ----- From: "Dominik Schmidt" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, May 17, 2006 8:52 AM Subject: [twsocket] How to read directory with ftpclient? > Hello, > > I want to read a directory from my ftp server. So I use this code to read > the dir: > FTP.DisplayFileFlag := True; > FTP.Passive := True; > FTP.HostDirName := '/LVsource/'; > FTP.HostFileName := '*.*'; > DeleteFile(TEMP_FILE_NAME); > FTP.LocalFileName := TEMP_FILE_NAME; > FTP.Cwd; > FTP.Dir; > FTP.DisplayFileFlag := False; > > Then I use FTPDisplayFile for reading die results. > > procedure TMainForm.FTPDisplayFile(Sender: TObject; var Msg: String); > begin > Log('DATA: "' + Msg + '"'); > end; > > Is there an easier way to read a directory? Is there a simple demo which > demonstrates browsing in a ftp directory structur? I think it´s a hard way > to 'decode' all the lines like this one: > "-rw-r--r-- 1 moelski moelski 18808 May 15 16:04 Historie.rtf" > > Greetz Dominik > > -- > 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
