Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP - I can connect, but can't list folders on FTP??
Message
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
FTP - I can connect, but can't list folders on FTP??
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018567
Message ID:
01018567
Views:
45
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
Next
Reply
Map
View

Click here to load this message in the networking platform