You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Sergey Naranov (Jira)" <ji...@apache.org> on 2020/10/09 09:02:00 UTC

[jira] [Updated] (NIFI-7910) ListFTP Path Filter Regex

     [ https://issues.apache.org/jira/browse/NIFI-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Naranov updated NIFI-7910:
---------------------------------
    Summary: ListFTP Path Filter Regex   (was: ListSFP Path Filter Regex )

> ListFTP Path Filter Regex 
> --------------------------
>
>                 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: Major
>
> 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.3.4#803005)