# File/Folder Copy

Copies a specified file or folder on terminal.

Action available for the following operating systems:

![](/files/-MAlQBZuuTnc6hyzKSVQ)

### Parameters

* **Source File/Folder** *\<string> -* The full path to the file or folder that the user wants to copy. Don't use wilchars(\*.?) in this parameter.
* **Target File/Folder** \<string> - The full path to the destination file or folder. Don't use wilchars(\*.?) in this parameter.
* **Overwrite?** *\<unquoted string> -* This parameter defines if the user wants to replace the file or folder if the target file or folder already exists. The possible values for this parameter are: *Yes*, *No* or *dynamic*.

{% hint style="info" %}
In the parameter **Target File/Folder** please consider that: If the user specify a different name, the file will be renamed; If the user specify a different folder, the folder will be moved; if the user specify a different file name and folder, the file will be moved and renamed; If the folder exists in the Target File/Folder path, the File/Folder is not moved.
{% endhint %}

{% hint style="info" %}
If the parameter **Source File/Folder** ends with a '\\' is treated as a Folder, otherwise is treated as a File.

Note also that Android uses URI (Uniform resource identifier) to identify system resources (whether it's a page of text, a video or sound clip, a still or animated image or a program). This means that Kalipso doesn't know the file name itself. For that, the "File/Folder Copy" function must always contain the file name in target parameter.
{% endhint %}

{% hint style="info" %}
The **Source File** can be an URI that can be opened as an InputStream (Android only)
{% endhint %}


---

# 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://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-files/file-folder-copy.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.
