# Download operations

### Download multiple files <a href="#download-multiple-files" id="download-multiple-files"></a>

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

#### Parameters <a href="#parameters" id="parameters"></a>

| 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". |
| 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 <a href="#output" id="output"></a>

No output.

#### Since <a href="#since" id="since"></a>

6.3

### Download single file <a href="#download-single-file" id="download-single-file"></a>

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

#### Parameters <a href="#parameters" id="parameters"></a>

| 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 <a href="#output" id="output"></a>

No output.

#### Since <a href="#since" id="since"></a>

6.3

### Download stream <a href="#download-stream" id="download-stream"></a>

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

#### Parameters <a href="#parameters" id="parameters"></a>

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

#### Output <a href="#output" id="output"></a>

Simple value (binary stream).

#### Since <a href="#since" id="since"></a>

6.3
