FileList - File List

The FileList component outputs the specified directory's file list.

The list is output as a stream of records.

Stream Information

InputFormatAll
Number of InputsUnlimited
Description

The input stream is not used. Stream formats are not selectable.

OutputFormatRecord
Description The output stream is always of type Record.
The Record field names and the order that they are output is listed below.
The Record fields and their order are fixed. The field names or field order should not be changed. If the field names are changed or the fields deleted the data will not be retrieved correctly.
Field NameData TypeDescription
FileNameStringfile name
FilePathStringfile path
FileDateDateTimefile timestamp
FileSizeIntegerfile size
FileTypeString"file" or "directory"

Component Properties

NameData TypeMappingDescription
FileMaskstringIn & Out The file search mask. File data for the files that match the search pattern specified here will be output.
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.
If this property is empty, file data for all the files in the Directory will be output. This is the same as setting this property to "*".
Some examples follow:
** - all files in all the directories beneath, and including, the Directory
* - all files in the Directory
**/*.txt - all "*.txt" files in all the directories beneath, and including, the Directory
*.txt - all "*.txt" files in the Directory
**/src/**/*.java - all "*.java" files beneath the Directory that have at least one "src" directory in their path.
DirectoryremoteFileIn & Out The directory path. No distinction is made between the "/" and "\" characters. Either is acceptable.
If this field is empty, the HomeDirectory file list will be output.
Some example file paths follow:
directory
C:\directory
\\server\share\
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.
FileTypechoiceIn & Out The type of file to list.
All - Files and folders
File - Only files
Directory - Only folders
Target Updated Dategroup- The property settings' place holder when the files are filtered by modified time.
BeforedatetimeIn & Out If non-empty, only files whose modified date is before this value are selected. For details of the format, please refer to following topic "About the Before and After properties' format".
AfterdatetimeIn & Out If non-empty, only files whose modified date is after this value are selected. For details of the format, please refer to following topic "About the Before and After properties' format".
SortchoiceIn & Out Specifies how the file results are to be sorted for output.
FilePath - Sort by FilePath (ascending order)
FilePath(Desc) - Sort by FilePath (descending order)
FileDate - Sort by FileDate (ascending order)
FileDate(Desc) - Sort by FileDate (descending order)
FileSize - Sort by FileSize (ascending order)
FileSize(Desc) - Sort by FileSize (ascending order)
LoopProcessloopProcess- Specifies if it outputs file list as an individual stream or as a single stream.
true [true] - Each matching file is returned in its own output stream.
false [false] - All matching files are returned in a single output stream.

Loop

If LoopProcess=true, an output stream is created for each matching file, otherwise, a single output stream is created.

Transaction

CommitDo nothing
RollbackDo nothing

Exceptions

TypeParameterStream for error handling flowError
Code
Description
Exception None This component's input stream - Invalid FileMask.
DirectoryNotFoundException None This component's input stream1Invalid Directory.
FileNotFoundException None This component's input stream2File not found in the specified Directory.

Operations

About the Before and After properties' format

The Before and After properties' value, if set, must take the form "yyyy-MM-dd'T'HH:mm:ss". The time - hours, minutes, and seconds - cannot me omitted. Also, if a file's timestamp equals the specified Before and After period, the file's information will not be output.