Read File/Folder
Operation name
Read File/Folder
Function overview
Retrieves files/folders that are on Amazon S3 and writes them to the directory on HULFT Square Storage.
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.
|
|
Bucket name |
Required |
Available |
Specify a bucket. |
|
Folder path |
Required |
Available |
Enter an Amazon S3 folder path. |
Note
|
File/folder name |
Required |
Available |
Specify a file/folder. |
|
Local directory |
Required |
Available |
Enter a directory path of HULFT Square Storage. The Browse button launches a directory chooser that allows you to select a directory. |
Note
|
Overwrite |
Optional |
Not available |
Select whether to overwrite when a file with the same name exists in the specified local directory.
|
|
Replace invalid file name |
Optional |
Not available |
Select whether to replace any Restricted characters of HULFT Square Storage or tabs in the name of a file/folder on Amazon S3 before the name is retrieved.
|
|
Recursive processing |
Optional |
Not available |
For a specified folder, select whether to get the file/folder recursively or not.
|
|
Include permissions in result |
Optional |
Not available |
Select whether to include file access right information in the results.
|
|
Decryption settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Secret Key |
Optional |
Available |
Enter the file path of the secret key to decrypt the client encrypted file. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Data processing method
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Data processing method |
Required |
Not available |
Select a data processing method.
|
|
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 name="" status="" > <file etag="" localpath="" name="" public="" remotepath="" size="" status="" storageclass="" type="" updated="" /> </bucket> </server>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
server |
- |
|
|
bucket |
- |
Appears for the bucket that is specified in Bucket name. |
|
name |
Outputs the name that is specified in Bucket name. |
|
|
status |
Outputs the status of the bucket that is specified in Bucket name.
|
|
|
file |
- |
Appears once for each retrieved file/folder. |
|
etag |
Outputs the ETag of the retrieved file/folder. |
|
|
localpath |
Outputs the local path of the retrieved file/folder. |
|
|
name |
Outputs the name on Amazon S3 of the retrieved file/folder. |
|
|
public |
Outputs the access right of the retrieved file/folder.
|
|
|
remotepath |
Outputs file path on Amazon S3 of the retrieved file/folder. |
|
|
size |
Outputs the size of the retrieved file/folder. The unit is byte. |
|
|
status |
Outputs the status of the retrieved file/folder.
|
|
|
storageclass |
Outputs Storage Class of the retrieved file/folder.
|
|
|
type |
Outputs the classification of the retrieved file/folder.
|
|
|
updated |
Outputs the last updated date of the retrieved 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 retrieved folders and files is stored. |
|
folder_count |
The number of retrieved folders is stored. |
|
file_count |
The number of retrieved 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. |
|
About a name of a file/folder with invalid characters
Behavior about Replace invalid file name is as follows:
- When this item is selected
-
-
A file/folder name on Amazon S3 isn't modified at all.
-
In a case where the below conditions are all satisfied, obtain the file name with a serial number at the end (before an extension if any), like "<File Name>_1.csv".
-
A name of a file/folder retrieved from Amazon S3 contains restricted characters of HULFT Square Storage or tabs.
-
The name after replacing restricted characters of HULFT Square Storage or tabs is the same as another file/folder name which was obtained by the same process.
-
-
When the file/folder name is the same as the file/folder name in the specified local directory, behavior depends on the Overwrite setting.
-
- When this item isn't selected
-
-
An error occurs when a file/folder whose name has restricted characters in HULFT Square Storage is created on local.
-
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|