tFileCopy Standard properties

tFileCopy

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
Talend Data Management Platform
Talend Data Integration
Talend Data Fabric
Talend Big Data Platform
Talend ESB
Talend Open Studio for MDM
Talend Open Studio for Data Integration
Talend Big Data
Talend MDM Platform
Talend Open Studio for ESB
Talend Data Services Platform
Talend Real-Time Big Data Platform
Talend Open Studio for Big Data
task
Data Quality and Preparation > Third-party systems > File components (Integration) > File management components > tFileCopy
Data Governance > Third-party systems > File components (Integration) > File management components > tFileCopy
Design and Development > Third-party systems > File components (Integration) > File management components > tFileCopy
EnrichPlatform
Talend Studio

These properties are used to configure tFileCopy running in the Standard Job framework.

The Standard tFileCopy component belongs to the File family.

The component in this framework is available in all Talend products.

Basic settings

File Name

Specify the path to the file to be copied.

This field does not appear when the Copy a directory check box is selected.

Copy a directory

Select this check box to copy a directory including all subdirectories and files in it.

Source directory

Specify the source directory to copy.

This field appears only when the Copy a directory check box is selected.

Destination directory

Specify the directory to copy the source file or directory to.

Rename

Select this check box if you want to rename the file copied to the destination.

This field does not appear when the Copy a directory check box is selected.

Destination filename

Specify a new name for the file to be copied.

This field appears only when the Rename check box is selected.

Remove source file

Select this check box to remove the source file after it is copied to the destination directory.

This field does not appear when the Copy a directory check box is selected.

Replace existing file

Select this check box to overwrite any existing file with the newly copied file.

This field does not appear when the Copy a directory check box is selected.

Create the directory if it doesn't exist

Select this check box to create the specified destination directory if it does not exist.

This field does not appear when the Copy a directory check box is selected.

Advanced settings

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at a Job level as well as at each component level.

Global Variables

Global Variables

DESTINATION_FILENAME: the destination file name. This is an After variable and it returns a string.

DESTINATION_FILEPATH: the destination file path. This is an After variable and it returns a string.

SOURCE_DIRECTORY: the source directory. This is an After variable and it returns a string.

DESTINATION_DIRECTORY: the destination directory. This is an After variable and it returns a string.

ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl + Space to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio User Guide.

Usage

Usage rule

This component can be used as a standalone component.

Connections

Outgoing links (from this component to another):

Row: Main.

Trigger: On Subjob Ok; On Subjob Error; Run if; On Component Ok; On Component Error.

Incoming links (from one component to this one):

Row: Main; Reject; Iterate.

Trigger: Run if; On Subjob Ok; On Subjob Error; On component Ok; On Component Error; Synchronize; Parallelize.

For further information regarding connections, see Talend Studio User Guide.