Altova FlowForce Server 2025 Advanced Edition

Full path: /system/filesystem/copy

 

Copies a file from a source to a target directory. Optionally, the file can be copied with a new name to the target directory. When invoked from a simple execution step, this function copies one file at a time. To copy multiple files with FlowForce, enclose the step which calls the copy function inside a For each step, as illustrated in the Copy Files example.

 

Parameters

Name

Type

Description

Source

string as file

The path and file name of the source file that you want to copy.

Target

string as file

The path and file name of the destination directory. You can enter a different file name in the destination field if you want to rename it as well.

Overwrite

boolean

When true, causes the destination file to be overwritten. The default value is false .

Abort on error

boolean

Optional parameter. This parameter determines the outcome of a job in which an error has occurred. If the Abort on error parameter is true, job execution will be terminated. If the Abort on error parameter is false, FlowForce Server will ignore errors and continue job execution. The default value is true.

Working directory

string as directory

Specifies the working directory (for example, c:\somedirectory). If relative paths are used, they will be resolved against the working directory.

 

Examples

See Copy Files.

 

© 2018-2024 Altova GmbH