I try to get a file with this simple block of code, but nothing will be received. I've also attached debug window screenshot. what's wrong?
Code: Select all
InitNetwork()
If OpenFTP(0, "ftp.xxxxx.net", "username", "password")
Debug GetFTPDirectory(0)
SetFTPDirectory(0, "first")
Debug GetFTPDirectory(0)
Result = ReceiveFTPFile(0, "file.txt", "c:\file.txt", #True)
Repeat
Debug FTPProgress(0)
Delay(300)
Until FTPProgress(0) = -3 Or FTPProgress(0) = -2
Else
Debug "Can't connect"
EndIf

Here is my ftp file and folder structure:
/
/first [Folder]
--- send_this_now.sql [File]
--- file.txt [File]
I have linux based server and all permissions are set to 755 or 777.