# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.novacuraflow.com/6.12/development/flow-studio/connectors/communication/sftp/download-operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
