> 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/6.12/development/flow-studio/connectors/communication/sftp/file-operations.md).

# File operations

### Check if file exists <a href="#check-if-file-exists" id="check-if-file-exists"></a>

Checks if a remote file exists.

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

| Parameter   | Description    |
| ----------- | -------------- |
| Remote path | Path to check. |

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

Simple value,'True' if file exists. 'False' otherwise.

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

6.3

### Copy remote file <a href="#copy-remote-file" id="copy-remote-file"></a>

Copies a remote file into the selected destination.

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

| Parameter                   | Description              |
| --------------------------- | ------------------------ |
| Remote source path          | Path where to copy from. |
| Remote destination path     | Path where to copy to.   |
| Overwrite if already exists | True or false.           |

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

No output.

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

6.3

### Delete file <a href="#delete-file" id="delete-file"></a>

Delete a remote file.

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

| Parameter   | Description             |
| ----------- | ----------------------- |
| Remote path | Path to file to delete. |

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

No output.

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

6.3

### Delete files <a href="#delete-files" id="delete-files"></a>

Delete multiple remote files based on mask.

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

| Parameter      | Description                                                                                                                                                                                            |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Remote path    | Path where to delete files.                                                                                                                                                                            |
| 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". |
| Case sensitive | Specifies if mask is case sensitive (not applicable if regex is used).                                                                                                                                 |
| Recursive      | Specifies whether to delete files recursivly.                                                                                                                                                          |

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

No output.

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

6.3

### Get size of file <a href="#get-size-of-file" id="get-size-of-file"></a>

Gets the size, in bytes, of remote file.

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

| Parameter   | Description       |
| ----------- | ----------------- |
| Remote path | File of interest. |

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

Simple value, numeric.

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

6.3

### Rename file <a href="#rename-file" id="rename-file"></a>

Renames a remote file.

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

| Parameter | Description           |
| --------- | --------------------- |
| Old path  | Current name of file. |
| New path  | New name of file.     |

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

No output.

#### 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
