Create File

The Create File activity creates a new file or directory with the specified name at specified location.

Settings

Field Description
Is a Directory

When this field is set to true, the activity creates a directory instead of a file.

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.

Input

The Input tab displays the following fields:

Field Description
fileName

The path and name of the file to create. Set the Is a Directory field to true on the Settings tab to specify that it is a directory you want to create.

overwrite

Set this field to true to overwrite the existing file with the same name if it exists. In case of directory, overwrite happens only if existing directory is empty.

If the specified file or directory exists and this field is set to false, then the activity throws an error.

Output

The output schema displays all the metadata fields of a new file/directory 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" in the TIBCO Flogo® Enterprise User Guide for information on the Loop tab.