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;