File Copy Writer Parameters

Source Parameters

File Operation

Specifies whether to Copy or Move the input files.

Copy Source Folder

If the source file location is a folder, this parameter indicates whether to only copy the contents of the source folder to the destination folder, or whether to copy the folder name in addition to the contents.

Leaving the default parameter set to No will copy only the contents of the source folder.

Copy Subfolders

If the source file location is a folder, this parameter specifies whether to additionally copy any subfolders and their contents to the destination folder.

Error on Non-Existent Source

Specifies whether FME should issue an error and terminate the translation when the specified source file/folder does not exist.

When set to No and the source file/folder does not exist, FME logs a warning (WARN) to the log file and proceeds.

Destination Parameters

Overwrite Existing File

Specifies whether to automatically replace files in the destination folder if they already exist.

Note  Any file naming conflicts can be resolved through this parameter, which directs the writer to overwrite the files in the output folder if name collisions occur. If the source location provided is a folder, subfolders and their contents may be optionally copied to the destination location as well.

Feature Type Names as Subfolders

Specifies whether to create subfolders relative to the writer destination dataset folder using the feature type name (for example, (subfolder)). The default value is Yes.

Nested folders are possible using forward slashes (mysubfolder/mysubsubfolder) or escaped backslashes (mysubfolder\\mysubsubfolder).

This option is compatible with feature type fanout.

When set to No, output files will be placed directly in the writer destination dataset folder.

Error on Invalid Destination

If the file cannot be copied for any reason:

  • Yes – FME will log an error message (ERROR) to the log file and terminate the translation.
  • No (default) – FME will log a warning message (WARN) to the log file, and the translation will continue.

FME Flow Parameters

MIME Type

Note  This parameter is only valid for users who are authoring for FME Flow's streaming service, and would like to be able to create HTML files on the fly for streaming into the browser (as opposed to streaming plain text back to the browser).

By adjusting this setting, the user is communicating to, and storing in the workspace, information on how the text file will be streamed back if it is used in the streaming service.

The valid values for this parameter include all valid MIME types. Several common types are listed and others can be entered as text strings.