Write File/Folder
Operation name
Write File/Folder
Function overview
Writes file/folder on HULFT Square Storage to Google Drive.
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.
|
|
Local directory |
Required |
Available |
Enter a directory path of HULFT Square Storage. |
Note
Case-insensitive. |
Local file/directory name |
Required |
Available |
Specify a file/directory on HULFT Square Storage. |
|
Recursive processing |
Optional |
Not available |
For the specified local directory, select whether to process file/directory recursively.
|
|
Convert file To Google format |
Optional |
Not available |
Select whether to convert the file to Google format.
|
= Remarks =
For details, refer to Conversion to Google format. |
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
|
Create folder when it doesn't exist |
Optional |
Not available |
Select whether to create the folder when the specified folder doesn't exist.
|
|
Overwrite |
Optional |
Not available |
Select whether to overwrite when a file with the same name exists in the specified folder.
|
|
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. |
|
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 name of the shared drive where a file/folder is written. |
|
|
drivetype |
Outputs the type of the drive where a file/folder is written. |
|
|
file |
- |
Appears once for each written file/folder. |
|
etag |
- |
Note
|
|
localpath |
Outputs local path of written file/folder. |
|
|
md5checksum |
Outputs the MD5 checksum for the written file. |
|
|
name |
Outputs name of the written file/folder. |
|
|
remotepath |
Outputs file path on Google Drive of written file/folder. |
|
|
size |
Outputs size of written file/folder. The unit is byte. |
|
|
status |
Outputs status of written file/folder.
|
|
|
type |
Outputs classification of written file/folder.
|
|
|
updated |
Outputs the last updated date of written 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.
Transaction
Transaction isn't supported.
Parallel Stream Processing
PSP isn't supported.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of written folders and files is stored. |
|
folder_count |
The number of written folders is stored. |
|
file_count |
The number of written 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 Google format to which the file is converted is determined by the file extension.
For files whose file extension isn't supported by Google format conversion, writing fails.
As a result, "ErrorLocalFileInvalidType" is set to the status attribute of the file element.-
File extensions that are available for writing and the corresponding Google formats are as follows:
Extension
Google format
Remarks
doc, docx, txt, html, htm, odt, sxw, rtf, jpg, jpeg, gif, pdf, png, bmp
Document
pps, ppt, pptx
Presentation
xls, xlsx, ods, csv
Spreadsheet
wmf
Drawing
tab, tsv, swf, svg
File
NoteNo file conversion takes place when exported to Google format.
zip
Compressed archive
NoteNo file conversion takes place when exported to Google format.
-
-
When Overwrite is selected and overwriting is performed, if the specified conversion format and the format of the existing file with the same name are different, the operation is as follows:
Existing file format
Specified format when overwriting
Process result
Google format
No conversion
-
File contents will be updated, but the format will remain as Google format.
-
The Status attribute of the file element in the result data becomes "Exist".
No conversion
Google format
-
File contents will be updated, but the format won't be changed.
-
The Status attribute of the file element in the result data becomes "Exist".
-
-
When writing file with Overwrite not selected, if any of the followings is true, the file can't be converted to a Google format and fails to write.
As a result, "ErrorRemoteFileUploadFailed" is set to the status attribute of the file element.
-
The contents of the file are invalid.
-
The file size exceeds the size limit for the Google format conversion.
NoteFor more details regarding file size limitation, refer to Google Drive Help.
-
-
When files are converted to Document/Presentation/Spreadsheet, the text formatting and images may be lost due to the Google Drive specifications.
-
html and htm files encoded with character encoding other than UTF-8 may be garbled when converted to Document.
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|