I would expect it to. youve asked it to show you the details of the directory, not the contents within it.
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
try changing directory, and asking for a list of *
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
debug it, is the array just 1 entry? if it is then.. thats why
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
no no, you're missing the point.
If the function you're calling only sends back the 1 file, then thats all it has to send. For loop and foreach wont make any difference.
if the array only has the 1 file, you cant change that
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
So GetFileList isnt returning more than 1 thing.
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
Well, its one of the following:
1. that the folder your FTP server connects to is different to the one you think it is
2. the FTP component you're using isnt good
3. the FTP server is sending back odd information and its not being parsed right
4. What you told it to do is fundementally wrong.
Try this.
make a new app
create a new ftp thing (wether its component or just a class)
connect to ftp.microsoft.com
login as ftp
password test@home
get a list of files.
What does it get?
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190