Listnames not returning all file names - WeOnlyDo Discussion board

Listnames not returning all file names (wodFtpDLX / wodFtpDLX.NET)

by jasnew1969, Thursday, October 10, 2013, 19:43 (3822 days ago)

After I connect, I run this:Ftp1.ListNames In/ to get a list of all the files in the directory. I catch the list using

sfn() = Split(FileInfo, vbNewLine) in the ftp1_listitems event.

I then parse through them and download them as I need them. The problem I am having is that it isn't returning all files in that directory. I have 4000 files there and it is only returning 33 in the string. I tried it with the sftp control and got the same response. Is this a limitation or a I doing something wrong?

Re: Listnames not returning all file names

by wodSupport, Thursday, October 10, 2013, 19:48 (3822 days ago) @ jasnew1969

Hi.

let me try to help. Can you check if ListItems fired more than once? It should if there are that many files inside.

Can you check that and let me know?

Thanks,
Kreso

Re: Listnames not returning all file names

by jasnew1969, Thursday, October 10, 2013, 20:47 (3822 days ago) @ wodSupport

Ok, it did fire 2 times but that still doesn't list all files. I had it do a print screen and still less than 100 I think..

Re: Listnames not returning all file names

by wodSupport, Thursday, October 10, 2013, 20:48 (3822 days ago) @ jasnew1969

It should fire much more times. Any chance we can duplicate this? Do you wait long enough? I don't know if you're using Blocking mode or not, so I cannot be sure.

If we can duplicate this somehow, this would be really good and I hope this would mean easy fix.

Kreso

Re: Listnames not returning all file names

by jasnew1969, Thursday, October 10, 2013, 21:10 (3822 days ago) @ wodSupport

I'll be happy to give you login info in PM so you can try and see if it does it to you. I am using blocking. I do a debub.print each time and I only see if fire twice before it returns it to me.

Re: Listnames not returning all file names

by wodSupport, Thursday, October 10, 2013, 21:18 (3822 days ago) @ jasnew1969

Can you send details to techsupport - at - weonlydo.com ?

Thanks,
Kreso

Re: Listnames not returning all file names

by jasnew1969, Thursday, October 10, 2013, 21:23 (3822 days ago) @ wodSupport

Will do just a few minutes

Thanks
James

Re: Listnames not returning all file names

by jasnew1969, Thursday, October 10, 2013, 21:35 (3822 days ago) @ jasnew1969

ok, it's sent.

James

Re: Listnames not returning all file names

by jasnew1969, Thursday, October 10, 2013, 21:41 (3822 days ago) @ jasnew1969

Ok, I added a count and it looks like what's happening is I'm just not seeing it all run through the debug. I didn't know it was running more than once to get the list so I was only catching it once. Now that I now I have to catch it multiple times, I'll have to figure out how to work with that. I have to pull them in and then sort by location and date.. sorry for the confusion.