- GETTING STARTED
- Server connection
- File Transfer
- Directory operations
- File operations
- Script output
Check if the connection with the FTP server is broken.
This command sends an empty request (also called NOP in the FTP protocol specification) to the FTP server ans waits for the response. If no response is received in 45 seconds or if the connection is already broken it returns "FALSE", otherwise it returns "TRUE".
This command was added in ScriptFTP version 3.3.
#This is a label, it marks a position in the script.
# Connect to FTP server
# Download some zip files
# If GETFILE got an error and the connection is broken retry
IF($result!="OK" AND ISCONNECTED()=="FALSE")
IF($result!="OK" AND ISCONNECTED()=="TRUE")
PRINT("Error downloading zip files. The error is not related to the connection. Stopping the script.")
# If ScriptFTP reaches this point of the script means that the file download were successful. Close the connection.