Foreach [ FTP LIST ]
New in 2021!   Eonza automation software - free, open source cross-platform automation software for easy creation and management of scripts.

Foreach [ FTP LIST ]

Enumerates all files and directories in the current directory on the FTP server. The command can contain other commands that will be executed for the each file or directory. The connection should be established with FTP [ Open ] command.

Description
Optionally, you may add comments here describing the purpose of this element.
Variable name
The name of the variable whose value will be equal the current line retrieved from LIST command.
There are the following result variables. You can use these variables in inner commands.

Variable nameDescription
[var] The full line from the result of LIST command.
[var]name The name of the file or directory.
[var]isfile Equals 1 if this is a file. Equals 0 if this is a directory.
[var]link If it is not empty then this is a linked directory. In this case, this value equals a target directory.
[var]size The size of the file.

Example, if you specified variable name as ftp then

#ftpsize# - the size of the file 
#ftpname# - the name of the file or directory