I may well end up using your components, but in the meantime I need to
determine what my problem is here.
I use DirAsync to get the directory listing. If I set the directory to Test1
and do a DirAsync, I get all the files and folder names. Now If I set the
CWD to one of these sub folders and do a DirAsync again, I get a zero length
stream returned. I know there are files in the sub folder as I can see them
with Windows Explorer.

The curious thing is that when I CWD straight to the subfolder after the
Connect event, the DirAsync now returns some data in the stream, but only
the dot and double dot folders.

Any more clues?

Graham

-----Original Message-----
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: 16 July 2012 14:26
To: twsocket@elists.org
Subject: Re: [twsocket] ICS FTP Client

> Now I change the working directory to Test1/abc. I check with Now I 
> change the working directory to Test1/abc. PwdAsync that it is correct 
> and it responds with what I could expect.
> Next I try and do a directory listing on this folder. The response 
> indicates no error, but the stream is of zero size.

LIST only returns file in the current directory, so unless there are files
in Test1/abc it will return a blank directory. 

If you want to list all files in sub-directories you have to traverse the
directory free listing each directory and combine all the results, or use an
FTP that lists all sub-directories in a single command, ie the ICS FTP
server.  

You can try my File Transfer Components which are high level FTP and HTTP
components using ICS that will list sub-directories and copy all the files
with a single command. 

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

Angus

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to