I hope someone could help me.
I have c# code to retrieve file information from a IBM Mainframe
I'm using edtFTPnet library version 2.0.0.0
The code look like this:
String[] allfiles;
FTPFile[] filesdetail;
allfiles = ftpC.Dir();
filesdetail = ftpC.DirDetails();
Dir method work just fine, but DirDetails is throwing the following message
A first chance exception of type 'System.IndexOutOfRangeException' occurred in edtFTPnet.dll
Index was outside the bounds of the array.
at EnterpriseDT.Net.Ftp.UnixFileParser.IsValidFormat(String[] listing)
at EnterpriseDT.Net.Ftp.FTPFileFactory.DetectParser(String[] files)
at EnterpriseDT.Net.Ftp.FTPFileFactory.Parse(String[] fileStrings)
at EnterpriseDT.Net.Ftp.FTPClient.DirDetails(String dirname)
at EnterpriseDT.Net.Ftp.FTPClient.DirDetails()
There are 754 files on the directory, I also tried initializing filesdetail variable to 1000 items but still getting the same error.
I tried to test this code in a smaller directory (350 items) and the error is gone, but DirDetails method is returning an array of zero elements.
Dir method is working fine, returning all the items.
Any help would be very appreciated.