The FileSystem(Get) component reads the specified file and outputs the data.
| Input | Format | All |
|---|---|---|
| Number of Inputs | Unlimited | |
| Description |
The input stream is not used. Stream formats are not selectable. |
|
| Output | Format | XML,CSV,FixedLength,Text,HTML,Binary,MIME |
| Description | Specifies the format the file's data is to be output as. |
| Name | Data Type | Description |
|---|---|---|
| FilePath | String | The file's path. |
| FileDate | DateTime | The file's last modified date. |
| FileSize | Integer | The file's size. |
| Name | Data Type | Mapping | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FilePath | remoteFile | In & Out |
The file's path to be read. 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. There are three wildcard characters: "*", "**", and "?". "**" is an optional multi-directory wildcard operator. The "*" character is an optional multi-character wildcard operator. The "?" character is an optional single-character wildcard operator. Some example file paths follow: directory/file.txt C:\directory\file.txt \\server\share\file.txt **/*.txt - all "*.txt" files in all the directories beneath, and including, the HomeDirectory C:\directory\*.txt - all "*.txt" files in all the directories beneath, and including, the directory C:\directory |
||||||||||||||||||||||||
| FilePathDetail | group | - | Properties for specifying details of file path. | ||||||||||||||||||||||||
| HomeDirectory | pathResolver | - |
Specifies the base folder when the path is written by a relative path.
|
||||||||||||||||||||||||
| AllowAbsolute | boolean | - | Specifies whether to allow an absolute path. | ||||||||||||||||||||||||
| AllowUpDir | boolean | - | Specifies whether to allow the ".." in order to move to parent folder. | ||||||||||||||||||||||||
| FileEncoding | choice | In & Out |
Defines the encoding used to read the file if the file's stream format is Text, HTML or CSV. The file's stream format is defined by the OutputStreamFormat property.Auto Detect will attempt to determine the file's encoding type automatically. The selected Stream Properties Encoding type can be different than the selected FileEncoding type.
|
||||||||||||||||||||||||
| LoopProcess | loopProcess | - |
When using the "*" wild card in the FilePath property, it is possible to match multiple files.
|
||||||||||||||||||||||||
| Processing when commit | choice | - |
Selects whether to delete the file after flow is committed.
|
If the defined FilePath matches multiple files and LoopProcess=true, looping will be initiated.
| Commit | If Processing when commit=Delete File(s), the file will be deleted. |
|---|---|
| Rollback | Do nothing |
| Type | Parameter | Stream for error handling flow | Error Code | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| FileNotFoundException |
| This component's input stream | - | Cannot find the FilePath defined file. | ||||||
| Exception |
| This component's input stream | - | The HomeDirectory is set to Executing user home folder, but the execute user does not exist and the relative path cannot be determined. |
When using a wild card, which results in the output of multiple files, the order in which the files are output is dependent on the results of sorting the file paths into lexical order.
Furthermore, the sorting results may differ depending on the underlying system. A UNIX system will distinguish between upper and lower case characters. A Win32 system will not distinguish between upper and lower case characters.