Hi,
I am trying to use the GetFiles Method on an SFTP connection to our servers. It throws an Index is out of the bounds of an array Exception. Any thoughts on how to resolve this will be appreciated.
The directory structure in the Server is as follows
/Inbox
/Test1.txt
/Test2.txt
/Data
And the program code line is:
client.GetFiles(@"/Inbox", @"C:\DataCollection\TestFiles\Download\GrpDownload", SftpBatchTransferOptions.XCopy, SftpActionOnExistingFiles.OverwriteAll);
I find that C# program throws the Exception as follows:
Message:
Index is out of the bounds of an array.
Parameter name: created
Actual value was 12/31/1969 4:00:00 PM.
Stack Trace:
at Rebex.Net.SftpItem..ctor(String path, String filename, Int64 size, SftpItemType type, DateTime accessed, DateTime modified, DateTime created)
at gbMKS.9h58kZ.ProcessRemoteDirectory(1YiDCIZ traversalInfo, Boolean addNewInfos)
at 1RyBHn.1yALZOZ.cIZv0(1YiDCIZ )
at 1RyBHn.1yALZOZ.N30HDZ()
at 1RyBHn.1yALZOZ.Transfer(YpcDbZ method, 18waHwZ sourceFilter, String targetPath, TransferMethod transferMethod, MoveMode moveMode, LinkProcessingMode actionOnLinks, ActionOnExistingFiles actionOnExistingFiles, 1Acxa2 expectedRootItem)
at gbMKS.9h58kZ.1jMzU7Z(28xx7VZ , p5IYsZ , String , TransferMethod , MoveMode , LinkProcessingMode , ActionOnExistingFiles )
at Rebex.Net.Sftp.1yALZOZ(28xx7VZ , udycp , dpo7FZ , String , TransferMethod , MoveMode , LinkProcessingMode , ActionOnExistingFiles )
at Rebex.Net.Sftp.VGSfy(udycp , String , String , TraversalMode , TransferMethod , MoveMode , LinkProcessingMode , ActionOnExistingFiles , Boolean )
at Rebex.Net.Sftp.18wwkJZ(udycp , String , String , SftpBatchTransferOptions , SftpActionOnExistingFiles )
at Rebex.Net.Sftp.GetFiles(String remotePath, String localDirectoryPath, SftpBatchTransferOptions transferOptions, SftpActionOnExistingFiles existingFileMode)
at sftpExample.Form1.testServer()