FileZilla Pro CLI sets an error flag when an error occurs while running a command.
To clear the error flag, use the clear
command:
fzcli> clear
To run a command only if the error flag is not set, prefix it with ?:
fzcli> ?ls directory
To run a command even if the error flag is set and the option cli.error_handling
is set as 2
– skip if error flag is set, prefix it with !:
fzcli> set cli.error_handling 2
fzcli> !cd directory
Prefix a command with ^ and the error flag is not set in case of error:
fzcli> ^mkdir directory
Example
set cli.error_handling 2
connect ftps://user:password@server.net
set cli.error_handling 0
^mkir directory
cd directory
?put fille.txt
- Set error handling to exit in case of error.
- Connect to a remote server. If connection fails, FileZilla Pro CLI exits.
- Set error handling to continue in case of error.
- Creates a directory. If the directory creation fails the error flag is not set.
- Change current directory. If changing the current directory fails the error flag is set
- Upload a file. Only runs if the error flag is not set