Re: [twsocket] TFtpClient and directory listing

2005-11-18 Thread Angus Robertson - Magenta Systems Ltd
> However, does anyone have a small sample of code to retrieve a 
> directory, and - for example - place the contents into a listbox?

You need to parse the directory listing returned, there are two common 
formats and several more less common.  There are some functions at 
http://www.smatters.com/ics/ that will parse such directories into 
string lists, although there are some bugs. 

Or you can use my high level FTP TMagFtp component, which includes all 
the directory handling stuff and will download files only after checking 
they are newer, automatically.  There's an example that shows how to 
list a directory, and it's subdirectories (which is much harder).

The compiled version is free from: 

http://www.magsys.co.uk/delphi/magxfer.asp

The source is available free to ICS SSL contributors, from the SSL 
download page. 

Angus
-- 
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


[twsocket] TFtpClient and directory listing

2005-11-18 Thread Kochendoerfer, Michael
Hi all,

what is the correct implementation of retrieving a directory when using 
ftp...Async functions? My program structure is similar to the sample files 
(case RqType of... ftpOpenAsync: FtpClient.User; ... end;), so it wouldn't be 
hard for me to understand. What I've found is the option to use DirAsync, but 
according to the sources, it will retrieve the dir list to a file.

However, does anyone have a small sample of code to retrieve a directory, and - 
for example - place the contents into a listbox?

TIA,
Michael
-- 
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