I understand that IBM AS/400 does not support the MDTM FTP (.ModTime) command.
Would this affect my ability to use .DirDetails as well?
Here's my code:
Dim myFiles() As String
Dim myFTP As New EnterpriseDT.Net.Ftp.FTPClient
Dim myAttributes() As EnterpriseDT.Net.Ftp.FTPFile
With myFTP
.RemoteHost = "my.server.com"
.ConnectMode = EnterpriseDT.Net.Ftp.FTPConnectMode.PASV
.Connect()
.Login(txtUserName.Text, txtPassword.Text)
.CdUp()
.ChDir("My.Directory")
myAttributes = .DirDetails("*.*")
.Quit()
End With
myFTP = Nothing
MsgBox(UBound(myAttributes))
My.Directory is not empty, however the MsgBox always returns -1.
I'd appreciate suggestions on how to get this to work.