> 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/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 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/file-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.
