For some reason, I can connect to the FTP server just fine...but when I try to do this:
llSuccess = loFTP.GetDirectory()
... llSuccess returns a .F.
I know the FTP is working ok, because I can connect to it just fine with an FTP client (WS_FTP Pro). Does anyone see what I might be doing wrong? Is it a user permissions problem or something? The FTP is running on a WIndows 2003 Server.....
Thanks!
*-- Instantiate the FTP object
loFTP = CREATEOBJECT("FTP")
*-- Verify the FTP object was instantiated successfully
IF VARTYPE(loFTP) = "O" AND ! ISNULL(loFTP)
loFTP.cServerName = lcServerName
loFTP.cUserName = lcUserName
loFTP.cPassword = lcPassword
loFTP.lPassive = .F.
loFTP.lBinary = .T.
loFTP.cSourceFolder = "/Outbound/"
loFTP.cTargetFolder = LOWER(ADDBS(FULLPATH("Inbound\")))
loFTP.cFileName = "timestamp.txt"
*-- Test FTP server connection before continuing
llSuccess = loFTP.CONNECT()
*------------------
IF llSuccess
loFTP.Disconnect()
*-- Retrieve directory listing from the FTP server
llSuccess = loFTP.GetDirectory()
ICQ 10556 (ya), 254117