Supports Expression Language: trueRecurse Subdirectories | true | | Indicates whether to list files from subdirectories of the directory |
Input Directory Location | Local | - Local
 - Remote

| Specifies where the Input Directory is located. This is used to determine whether state should be stored locally or across the cluster. |
File Filter | [^\.].* | | Only files whose names match the given regular expression will be picked up |
Path Filter | | | When Recurse Subdirectories is true, then only subdirectories whose path matches the given regular expression will be scanned |
Minimum File Age | 0 sec | | The minimum age that a file must be in order to be pulled; any file younger than this amount of time (according to last modification date) will be ignored |
Maximum File Age | | | The maximum age that a file must be in order to be pulled; any file older than this amount of time (according to last modification date) will be ignored |
Minimum File Size | 0 B | | The minimum size that a file must be in order to be pulled |
Maximum File Size | | | The maximum size that a file can be in order to be pulled |
Ignore Hidden Files | true | | Indicates whether or not hidden files should be ignored |
Target System Timestamp Precision | auto-detect | - Auto Detect
 - Milliseconds
 - Seconds
 - Minutes

| Specify timestamp precision at the target system. Since this processor uses timestamp of entities to decide which should be listed, it is crucial to use the right timestamp precision. |
Relationships:
Name | Description |
---|
success | All FlowFiles that are received are routed to success |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
filename | The name of the file that was read from filesystem. |
path | The path is set to the relative path of the file's directory on filesystem compared to the Input Directory property. For example, if Input Directory is set to /tmp, then files picked up from /tmp will have the path attribute set to "/". If the Recurse Subdirectories property is set to true and a file is picked up from /tmp/abc/1/2/3, then the path attribute will be set to "abc/1/2/3/". |
absolute.path | The absolute.path is set to the absolute path of the file's directory on filesystem. For example, if the Input Directory property is set to /tmp, then files picked up from /tmp will have the path attribute set to "/tmp/". If the Recurse Subdirectories property is set to true and a file is picked up from /tmp/abc/1/2/3, then the path attribute will be set to "/tmp/abc/1/2/3/". |
file.owner | The user that owns the file in filesystem |
file.group | The group that owns the file in filesystem |
file.size | The number of bytes in the file in filesystem |
file.permissions | The permissions for the file in filesystem. This is formatted as 3 characters for the owner, 3 for the group, and 3 for other users. For example rw-rw-r-- |
file.lastModifiedTime | The timestamp of when the file in filesystem was last modified as 'yyyy-MM-dd'T'HH:mm:ssZ' |
file.lastAccessTime | The timestamp of when the file in filesystem was last accessed as 'yyyy-MM-dd'T'HH:mm:ssZ' |
file.creationTime | The timestamp of when the file in filesystem was created as 'yyyy-MM-dd'T'HH:mm:ssZ' |
State management:
Scope | Description |
---|
LOCAL, CLUSTER | After performing a listing of files, the timestamp of the newest file is stored. This allows the Processor to list only files that have been added or modified after this date the next time that the Processor is run. Whether the state is stored with a Local or Cluster scope depends on the value of the <Input Directory Location> property. |
Restricted:
This component is not restricted.Input requirement:
This component does not allow an incoming relationship.See Also:
GetFile, PutFile, FetchFile