Write File
The Write File activity writes content to the specified file.
Settings
Field | Description |
---|---|
Write as |
Representation type of content in the file you want to write. You can select from the following options:
With 'Text', input textContent will hold the plain string. With 'Binary', input binaryContent will hold the base64 encoded string. |
Create Non-Existing Directories | When this field is set to true , the activity creates
all directories in the specified path, if they do not
already exist.
If this field is set to false with non-existing one
or more directories in the specified path, it throws an error.
|
Compress |
This field specifies whether to compress the file using GZip format. Specify None for no compression, and GZip for a compressed output file. Note: When you specify GZip for this field, rename the file to use the .gz suffix and use gunzip to decompress the file.
|
Input
The Input tab displays the following fields:
Field | Description |
---|---|
fileName |
The name and path of the file or directory. For example: /opt/tibco/flogo/filename |
overwrite |
Set this field to If the specified file exists and this field is set to |
textContent |
The contents of the file (text files). This field is present when Write as is set to Text. |
binaryContent |
The base64 encoded content of the file (binary files). This field is present when Write as is set to Binary. |
Output
The output schema displays all the metadata fields of a file in a read-only format. The metadata object contains fullPath, name, size, mode, modTime
and isDir
fields.
Loop
Refer to the section on "Using the Loop Feature in an Activity".