Read File/Folder
Operation name
Read File/Folder
Function overview
Obtains file/folder on Google Drive, then writes to the directory on HULFT Square Storage.
Data model
The data model of this component is XML type.
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.
|
|
Drive type |
Required |
Not available |
Select the drive to perform the operation.
|
|
Shared drive name |
Required |
Available |
Select or enter a shared drive name.
|
|
Folder path |
Required |
Available |
Enter a Google Drive folder path. |
Note
|
File/folder name |
Required |
Available |
Specify a file/folder. |
|
Local directory |
Required |
Available |
Enter a directory path of HULFT Square Storage. |
Note
|
Overwrite |
Optional |
Not available |
Select whether to overwrite when a file with the same name exists in the specified local directory.
|
|
Recursive processing |
Optional |
Not available |
For a specified folder, select whether to get the file/folder recursively or not.
|
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Refresh shared drive name list |
Get shared drives in the specified destination and set them in Shared drive name. |
|
Refresh list of folder paths |
Get folder paths in the specified destination and set them to Folder path. |
|
Refresh list of item names |
Get file/folder names in the specified folder path and set them in File/folder name. |
|
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> <files drivename="" drivetype=""> <file etag="" localpath="" md5checksum="" name="" remotepath="" size="" status="" type="" updated="" /> </files> </server>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
server |
- |
|
|
files |
- |
|
|
drivename |
Outputs the retrieved shared drive name. |
|
|
drivetype |
Outputs the retrieved drive type. |
|
|
file |
- |
Appears once for each retrieved file/folder. |
|
etag |
- |
Note
|
|
localpath |
Outputs the local path of the retrieved file/folder. |
|
|
md5checksum |
Outputs the MD5 checksum for the retrieved file. |
|
|
name |
Outputs the name of the retrieved file/folder. |
|
|
remotepath |
Outputs the file path on Google Drive 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.
|
|
|
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 isn't supported.
Supports acquiring large files.
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. |
|
-
The format after conversion is determined by the Google format before conversion.
For files whose format isn't supported by Google format conversion, reading fails.
In this case, the status attribute of the file element will be "Error" in the result data.
-
The readable Google formats and the corresponding formats after conversion are as follows:
Google format
Format after conversion
Document
Web page (html)
Presentation
PDF document (pdf)
Spreadsheet
Microsoft Excel (xlsx)
Drawing
PNG image (png)
-
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|