# Download Operations

### Download multiple files

Downloads multiple files from the FTP server to the machine where Flow Server is running.

| Parameter         | Description                                                                                                                                                                                           |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Remote path       | Path to downloaded files from.                                                                                                                                                                        |
| Remote mask       | Mask used to filter which files to download. Example "\*.txt". Regular expressions can also be used by prefixing with *regex:*, example *regex:\[A\|B].*" to list all files starting with *A* or *B*. |
| Local filename    | Filename of where on Flow Server to store the downloaded files.                                                                                                                                       |
| File tranfer mode | Specifies how to handle if file already exists.                                                                                                                                                       |
| File copy mode    | Specifies what to do with the file after download has been completed.                                                                                                                                 |
| Case sensitive    | Specifies if mask is case sensitive (not applicable if regex is used).                                                                                                                                |
| Recursive         | Specifies whether to download files from sub directories recursivly.                                                                                                                                  |

**Output**: No output.

**Since**: 6.3

### Download single file

Downloads a file from the FTP server to the machine where Flow Server is running.

| Parameter         | Description                                                                                                                                                                                                 |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Remote filename   | The name of the file to be downloaded                                                                                                                                                                       |
| Local filename    | Filename of where on Flow Server to store the downloaded file.                                                                                                                                              |
| File tranfer mode | Specifies how to handle if file already exists.                                                                                                                                                             |
| Restart position  | Can be used to resume a broken transfer operation. If set to a non-zero positive value, the file being transferred is read starting from that position and is written also starting from provided position. |

**Output**: No output.

**Since**: 6.3

### Download stream

Downloads a file from FTP server and store it as Flow variable.

| Parameter       | Description                           |
| --------------- | ------------------------------------- |
| Remote filename | The name of the file to be downloaded |

**Output**: Simple value (binary stream).

**Since**: 6.3
