tFileCopy Standard properties - 7.3

tFileCopy

Version
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > File components (Integration) > File management components > tFileCopy
Data Quality and Preparation > Third-party systems > File components (Integration) > File management components > tFileCopy
Design and Development > Third-party systems > File components (Integration) > File management components > tFileCopy
Last publication date
2024-02-21

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.

Warning: Use absolute path (instead of relative path) for this field to avoid possible errors.

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.

Warning: Use absolute path (instead of relative path) for this field to avoid possible errors.

Destination directory

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

Warning: Use absolute path (instead of relative path) for this field to avoid possible errors.

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

Preserve last modified time

Select this option to use the last modified time of the source file as that of the destination file.

If this option is not selected, the current OS behavior for last modified time is adopted.

Note: This option is available only when you have installed the R2021-06 Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.

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.