FilePut - File Put

The FileSystem(Put) component writes the input stream to the specified file.

Stream Information

InputFormatAll
Number of Inputs1
DescriptionAccepts all stream types.
OutputFormatAll
Description

The input stream is copied to the output stream.

Component Properties

NameData TypeMappingDescription
FilePathremoteFileIn & Out The file's path. No distinction is made between the "/" and "\" characters. Either is acceptable.
If the file path is not absolute, the path is relative to the HomeDirectory.
Some example file paths follow:
directory/file.txt
C:\directory\file.txt
\\server\share\file.txt
FilePathDetailgroup- Properties for specifying details of file path.
HomeDirectorypathResolver- Specifies the base folder when the path is written by a relative path.
Project folder [Relative]
Start point is the same folder as the project file.
Home folder [ProjectOwner]
Start point is the projedct owner's home folder.
Executing user home folder [ExecuteUser]
Start point is the execute user's home folder.
AllowAbsoluteboolean- Specifies whether to allow an absolute path.
AllowUpDirboolean- Specifies whether to allow the ".." in order to move to parent folder.
AppendModechoice- Specifies how to write the file when the file specified by FilePath already exists.
New - Appends the input stream to the file.
Append - Writes the input stream as a new file.
AllowOverwriteboolean- Specifies what this component will do if the FilePath defined file already exists.


true [true] - Overwrites
false [false] - Throws AlreadyExistException.
Processing when rollbackchoice- Selects whether to delete the file after flow is rolled back.
Delete File(s) [true] - Deletes the file.
Do Nothing [false] - Does not delete the file.

Transaction

CommitIf AppendMode is set to Append, the file is closed.
Rollback If Processing when rollback is set to "Delete File(s)", the file is deleted.
If AppendMode is set to "Append", the file is closed.

Exceptions

TypeParameterStream for error handling flowError
Code
Description
Exception
No.NameDescription
1FilePathThe defined FilePath at the time the Exception occurs.
This component's input stream - The specified file cannot be written to.
- >HomeDirectory=Executing user home folder and the defined user does not exist.
AlreadyExistException
No.NameDescription
1FilePathThe defined FilePath at the time the Exception occurs.
This component's input stream4 The FilePath defined file already exists.
If AppendMode is set to Append and AllowOverwrite is set to true, this exception will not occur.

Operations

When the written file is closed

If the AppendMode is set to New, the file is closed when the component finishes execution.

If the AppendMode is set to Append, the file is closed according to the following situations:

If a parent flow is using transaction control, the FileSystem(Put) component in the sub-flow that is writing the new file will not close the file until the parent flow's transaction control ends.

* If you want to make a flow transactional, specifies it by the Transaction property of the Start or HttpStart component.

Performance

When AppendMode is set to "Append" and you repeatedly append something in the loop, you should make the flow transactional. Otherwise, the file is closed each time and it slows down.

Delete files by the DeleteFile component

When DeleteFile component deletes files, the files should be closed. Thus, if this component's AppendMode is set to Append, a written file cannot be deleted by the DeleteFile component in the same flow that is transactional.