DirItems skipping files in ListDir (General questions)
I am having a problem with FTP download. I am using ListDir(RemotePath) and then using DirItems to list files that I need to download. Most of the files get downloaded, but some files just never show up in the DirItems structure. They do however SHOW UP on the Stream when I use ListDir(RemotePath,ToStream). These files keep getting left behind for days together and I am having look for these and manually download them since the FTPDLX WodFTP tool leaves them behind. Please help!
It is very important that we download all the files on time. The following string is returned from the ListDir(RemotePath, ToStream) call. These two files are just not showing up on the DirItems structure. The code I am using is given below. Thanks!!
STRING RETURNED FROM ListDir(RemotePath, ToStream) is:
10-06-06 12:13PM 992 AMBIT_USG_20061006_121247_R5285570.txt
10-07-06 12:12PM 948 AMBIT_USG_20061007_121203_R5294755.txt
10-07-06 12:14PM <DIR> archive
_ftpFTPObject.Login = UserName;
_ftpFTPObject.Password = Password;
_ftpFTPObject.Hostname = Server;
_ftpFTPObject.Port = ServerPort;
_ftpFTPObject.Blocking = true;
_ftpFTPObject.Protocol = Protocols.FTP;
_ftpFTPObject.DirFormat = DirFormats.Auto ;
_ftpFTPObject.Timeout = 10; //ten minutes
_ftpFTPObject.ListParams = ;
_ftpFTPObject.Connect();
_ftpFTPObject.RemotePath = ./inbox/usg ;
_ftpFTPObject.ListDir();
WeOnlyDo.Client.DirItemsCollection dirItems = _ftpFTPObject.DirItems;
Re: DirItems skipping files in ListDir
Hi,
First, please if you didn't yet, download latest version of wodFtpDLX.NET. Latest version is 1.1.2.32. Maybe this is something that is fixed and with newest version maybe you don't have with downloading files.
If you are licensed user, you can download latest version here:
http://www.weonlydo.com/index.asp?update=1
This is automated process. Make sure you use same email address that is registered with our system, one you used when you have purchased the product.
Make sure that Version Property returns to you 1.1.2.32.
Here is example how to call Version Property:
------------------------
MsgBox ( _ftpFTPObject.Version)
------------------------
If you aren't that you can download it here:
http://www.weonlydo.com/Samples/wodFtpDLX.NET.msi
If problem persist we need to duplicate it somehow.
What is your server type/vendor/name?
You can check this our by typing in command prompt:
telnet your_server_name 21
and send us first line returned.
Best and fastest option for resolving your problem is that you provide us access to your server, is this possible?
If you can send us your private information (hostname, login, password) to techsupport@weonlydo.com
Hope I helped.
Regards,
Drazen
Re: DirItems skipping files in ListDir
Thanks!! It works with latest update.
Re: DirItems skipping files in ListDir
Hello,
I have the same problem. My evaluation version wodFTPDlx ActiveX returns one file less, than actually stored in the folder. When I check the remote folder with FireFTP client, I see one extra file. It is always first file in the folder, which is being skipped. Example: remote folder stores 100 files. After I run oFTP.ListNames() oFTP.DirItems.Count is equal to 99 and collection oFTP.DirItems holds item 0 to 98. When I loop through this collection 0 to 98, I always missing the file, which is physically 1st (oldest) on remote. Unfortunately, there is no item -1.
Really it works for me for now: missing file was downloaded long time ago, registered as downloaded locally and would be skipped any way.
Just if I start some business with empty folder I'll be always missing file #1. It would nice to buy a tool, which returns you all files...
P.S. Ones ListNames() got 64 files form the folder with 128 items. I've seen it only ones, during Debug session and will not accent on this.
Any ideas?
Thank you,
Victor
Hi,
First, please if you didn't yet, download latest version of wodFtpDLX.NET. Latest version is 1.1.2.32. Maybe this is something that is fixed and with newest version maybe you don't have with downloading files.If you are licensed user, you can download latest version here:
http://www.weonlydo.com/index.asp?update=1
This is automated process. Make sure you use same email address that is registered with our system, one you used when you have purchased the product.
Make sure that Version Property returns to you 1.1.2.32.
Here is example how to call Version Property:
------------------------
MsgBox ( _ftpFTPObject.Version)
------------------------If you aren't that you can download it here:
http://www.weonlydo.com/Samples/wodFtpDLX.NET.msi
If problem persist we need to duplicate it somehow.
What is your server type/vendor/name?
You can check this our by typing in command prompt:
telnet your_server_name 21
and send us first line returned.
Best and fastest option for resolving your problem is that you provide us access to your server, is this possible?
If you can send us your private information (hostname, login, password) to techsupport@weonlydo.com
Hope I helped.
Regards,
Drazen
Re: DirItems skipping files in ListDir
Victor,
We would like to duplicate your issue in order to deal with it.
Any chance we can connect to your server and duplicate it? We will just connect few times duplicate it and immediately disconnect.
You can send us your private information to techsupport@weonlydo.com
What is your server type/vendor/name?
You can check this our by typing in command prompt:
telnet your_server_name 21
and send us first line returned.
Hope I helped.
Regards,
Drazen