I have no problem with that, but I would be more happy with suggestions of how to do this with indy direct (ie. parsing both msdos and linux ftp listing formats).
What Francois should be angry on is that I have forgotten to send him the postcard (make it postcards) that I should have done long time ago. ;) Will do that next week, I promise. /Fredrik Thursday, May 12, 2005, 3:00:13 PM, you wrote: > I believe Francois will get angry since you mentioned and suggested Indy! > SZ > ----- Original Message ----- > From: "Fredrik Bergstr?m" <[EMAIL PROTECTED]> > To: "ICS support mailing" <twsocket@elists.org> > Sent: Thursday, May 12, 2005 3:16 PM > Subject: Re: [twsocket] Get List Of Files From Dir [FTPClient] > To list files in /Dir1 IdFTPClient->>HostDirName=/Dir1 IdFTPClient->>Cwd(); IdFTPClient->>Dir(); > And set the LocalFileName or LocalStream to where you would like to > get the list. > I do not know the easiest way to parse this list with ICS, but I > have used TIdFTPListItems from Indy to parse it in a earlier > project ;). > If you would like to list the files in another directory, just set > HostDirName to /Dir1/Dir2 or anything else. > /Fredrik > Thursday, May 12, 2005, 10:48:08 AM, you wrote: >> Hello, >> After connection with FTP server (for example, 192.168.1.1) I get list >> of files (with directories). >> How I can get list of files of specified directory, i.e. which path to >> HostDirName property I should assign? >> And if I have another dir's in that directory? >> I want to have access to all dir's. >> 192.168.1.1 >> -----> Dir1 >> ------> Dir2 >> --------> and so on. -- 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