FTP client scripting interface > FTP scripts for Activator application exchanges > Suppressing errors

Error Suppression

You can use the “-” qualifier to suppress errors. Here is an example:

# We try to RECV all files in the current directory.

# We ignore any errors for the RECV statement.

# If the file transfer succeeded, we delete the remote file.

# We ignore any errors for the DELETE statement.

#

LIST "." INTO %F {

-RECV %F;

IF(%FTPSTATUS IN "200"-"299") {

-DELETE %F;

}

}