Copy File/Folder
Operation name
Copy File/Folder
Function overview
Copies the file/folder on Amazon S3 to the specified bucket folder on Amazon S3.
Data model
The data model of this component is XML type.
Tutorials
For details about how to create a connection to Amazon S3, refer to the following tutorial:
Properties
For details on use of variables, refer to Variables.
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Destination |
Required |
Not available |
Select a connection resource.
|
|
Copy source bucket name |
Required |
Available |
Select or enter a copy source bucket. |
|
Copy source folder path |
Required |
Available |
Select or enter Amazon S3 folder path of copy source. |
Note
|
Copy source file/folder name |
Required |
Available |
Select or enter a copy source file/folder. |
|
Copy destination bucket name |
Required |
Available |
Select or enter a copy destination bucket. |
|
Create copy destination bucket when it doesn't exist |
Optional |
Not available |
Select whether to create a bucket when the specified copy destination bucket doesn't exist.
|
|
Copy destination folder path |
Required |
Available |
Select or enter Amazon S3 folder path of copy destination. |
Note
|
Create copy destination folder when it doesn't exist |
Optional |
Not available |
Select whether to create a folder when the specified copy destination folder doesn't exist.
|
|
Copy destination file/folder name |
Optional |
Available |
Select or enter a copy destination file/folder. |
|
Overwrite a copy destination file when it exists |
Optional |
Not available |
Select whether to overwrite the file when a file with the same name exists on the specified copy destination folder.
|
|
Include permissions in result |
Optional |
Not available |
Select whether to include information of copy destination file/folder access rights in the result.
|
|
Data processing method
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Data processing method |
Required |
Not available |
Select a data processing method.
|
Note
This setting is used to configure the output processing method of result data. It doesn't affect files/folders to be copied. |
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Input schema
None.
Output schema
<?xml version="1.0"?> <server> <bucket source_name="" destination_name="" status="" > <file etag="" name="" public="" source_remotepath="" destination_remotepath="" size="" status="" storageclass="" type="" source_updated="" destination_updated="" /> </bucket> </server>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
server |
- |
|
|
bucket |
- |
Appears for the bucket that is specified in Bucket name. |
|
source_name |
Outputs the name of the copy source that is specified in Bucket name. |
|
|
destination_name |
Outputs the name of the copy destination that is specified in Bucket name. |
|
|
status |
Outputs the status of the copy source and copy destination buckets that are specified in Bucket name.
|
|
|
file |
- |
Appears once for each copied file/folder. |
|
etag |
Outputs ETag of the copied file/folder. |
|
|
name |
Outputs the name of the copied file/folder. |
|
|
public |
Outputs the access right of the copied file/folder.
|
|
|
source_remotepath |
Outputs the file path available on Amazon S3 of copy source file/folder. |
|
|
destination_remotepath |
Outputs the file path available on Amazon S3 of copy destination file/folder. |
|
|
size |
Outputs the size of the copied file/folder. The unit is byte. |
|
|
status |
Outputs the status of copy source and copy destination files/folders.
|
|
|
storageclass |
Outputs the Storage Class of the copied file/folder.
|
|
|
type |
Outputs the classification of the copied file/folder.
|
|
|
source_updated |
Outputs the last updated date of the copy source file/folder. |
|
|
destination_updated |
Outputs the last updated date of the copy destination file/folder. |
|
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
Parallel Stream Processing
PSP isn't supported.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of copied files and folders is stored. |
|
folder_count |
The number of copied folders is stored. |
|
file_count |
The number of copied files is stored. |
|
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
|
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|