File/Folder Copy

Kalipso - Form - Actions - Actions Description - Group Files - File/Folder Copy

Copies a specified file or folder on terminal.

Action available for the following operating systems:

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.

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.

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.

The Source File can be an URI that can be opened as an InputStream (Android only)

Last updated