lordgamez commented on a change in pull request #1283:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1283#discussion_r839644176
##########
File path: PROCESSORS.md
##########
@@ -1025,6 +1026,46 @@ In the list below, the names of required properties
appear in bold. Any other pr
|success|All files are routed to success|
+## ListFile
+
+### Description
+
+Retrieves a listing of files from the local filesystem. For each file that is
listed, creates a FlowFile that represents the file so that it can be fetched
in conjunction with FetchFile.
+### Properties
+
+In the list below, the names of required properties appear in bold. Any other
properties (not in bold) are considered optional. The table also indicates any
default values, and whether a property supports the NiFi Expression Language.
+
+| Name | Default Value | Allowable Values | Description |
+| - | - | - | - |
+|**Input Directory**|||The input directory from which files to pull files|
+|**Recurse Subdirectories**|true||Indicates whether to list files from
subdirectories of the directory|
+|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|
+### Relationships
+
+| Name | Description |
+| - | - |
+|success|All FlowFiles that are received are routed to success|
+
+### Output Attributes
+
+| Attribute | Relationship | Description
|
+|----------------------------|--------------|--------------------------------------------------------------------|
+| _filename_ | success | The name of the file that was
read from filesystem. |
+| _path_ | success | 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/". |
Review comment:
It was actually "./" because it is changed on line ListFile.cpp:188. But
the documentation is wrong both here and in NiFi as NiFi also sets it to "./"
in its code not to "/". I also changed the code to contain the separator in
normal cases at the end of the relative path as it mentions in the
documentation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]