> For the complete documentation index, see [llms.txt](https://help.novacuraflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.novacuraflow.com/connectors/areas/communication/sftp/download-operations.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.novacuraflow.com/connectors/areas/communication/sftp/download-operations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
