[
https://issues.apache.org/jira/browse/NIFI-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063646#comment-16063646
]
ASF GitHub Bot commented on NIFI-4074:
--------------------------------------
Github user brosander commented on the issue:
https://github.com/apache/nifi/pull/1917
Hey @champagst
Thanks for the contribution! I was digging into the ListHDFS implementation
and I think the reason it doesn't work on nested files might be that it is only
matching against the [file name, not the whole
path.](https://github.com/apache/nifi/blob/e85081ed201bc7413e3d2d062c814e23c0ff5467/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/ListHDFS.java#L406)
Would adding a property that tells the filter to match [on the whole
path](https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html#toString--),
not just the name address your usecase? That way we could default it to false
and prevent existing flows from having their semantics changed.
> ListHDFS recursive search with regex
> ------------------------------------
>
> Key: NIFI-4074
> URL: https://issues.apache.org/jira/browse/NIFI-4074
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Steve Champagne
>
> ListHDFS isn't picking up nested files correctly when you use a regex.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)