# 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: 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.11/development/flow-studio/connectors/communication/sftp/file-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.
