# File Operations

### Check if file exists

Checks if a remote file exists.

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

**Output**: Simple value,*True* if file exists. *False* otherwise.

**Since**: 6.3

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

### Delete a remote file.

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

**Output**: No output.

**Since**: 6.3

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

Delete multiple remote files based on mask.

| 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**: No output.

**Since**: 6.3

### Get size of file

Gets the size, in bytes, of remote file.

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

**Output**: Simple value, numeric.

**Since**: 6.3

### Rename file

Renames a remote file.

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

**Output**: No output.

**Since**: 6.3

### Get file time

Get a remote file time.

| Parameter | Description       |
| --------- | ----------------- |
| Path      | File of interest. |

**Output**: Simple value, Date.

**Since**: 6.3

### Set file time

Changes a remote file time.

| Parameter | Description            |
| --------- | ---------------------- |
| Path      | File of interest.      |
| New time  | New time for the file. |

**Output**: No output.

**Since**: 6.3

### Get list of files

Get list of files in a directory.

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

**Output**: A table consisting of records with the following structure:

| Member | Description                      |
| ------ | -------------------------------- |
| Name   | The name of the file.            |
| Size   | The size, in bytes, of the item. |

**Since**: 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/ftp/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.
