[
https://issues.apache.org/jira/browse/NIFI-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-7910.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> ListFTP Path Filter Regex from root directory
> ---------------------------------------------
>
> Key: NIFI-7910
> URL: https://issues.apache.org/jira/browse/NIFI-7910
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.12.1
> Environment: windows 10
> Reporter: Sergey Naranov
> Priority: Critical
>
> Hello,
> I'm using ListFTP within the following settings
> - Remote Path: {color:#de350b}.{color}
> - Search Recursively: true
> - Path Filter Regex:
> fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> PathFilterRegex says: "When Search Recursively is true, then only
> subdirectories whose path matches the given Regular Expression will be
> scanned"
> so i expect to list all files at directories:
>
> {color:#de350b}fcs_regions{color}/{color:#4c9aff}Tyva_Resp{color}/notifications/currMonth/
>
> {color:#de350b}fcs_regions{color}/{color:#4c9aff}Altaj_Resp{color}/notifications/currMonth/
> and so on.
> directory {color:#de350b}fcs_regions{color} locates at root directory
> But result list of files contains files from root directory also.
> If i set folowwing settings:
> - Remote Path: /fcs_regions
> - Search Recursively: true
> - Path Filter Regex: (?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> Result list contains files from fcs_regions directory also
> How to prevent this behavior? Or is it a bug?
> If it is not a bug, please, explain, how to give absolute regex path from
> the root directory?
> these expressions don't scan directories
> {code:java}
> // заполнитель кода
> ^/fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> ^./fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> ^\\./fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> {code}
>
> and result list contains files only from the root directory.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)