[ 
https://issues.apache.org/jira/browse/NIFI-5560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16622384#comment-16622384
 ] 

ASF GitHub Bot commented on NIFI-5560:
--------------------------------------

Github user hemantha-kumara commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/3000#discussion_r219253879
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/FileTransfer.java
 ---
    @@ -141,6 +141,13 @@ default String getAbsolutePath(FlowFile flowFile, 
String remotePath) throws IOEx
             .defaultValue("false")
             .allowableValues("true", "false")
             .build();
    +    public static final PropertyDescriptor FOLLOW_SYMLINK = new 
PropertyDescriptor.Builder()
    --- End diff --
    
    as this property is common for both ftp and sftp, will it be good if I 
mention only ftp-follow-symlink ? as earlier properties like recursive, file 
regex and other properties names kept generic hence I had put only Follow 
symlink. 


> Sub directory(symbolic link to directory) files are not getting listed in 
> ListSFTP(ListSFTP does not Follow symbolic links)
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-5560
>                 URL: https://issues.apache.org/jira/browse/NIFI-5560
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Hemantha kumara M S
>            Assignee: Hemantha kumara M S
>            Priority: Major
>
> *Here is the configuration*
> ----
> *SFTP Server side:*
> -bash-4.2$ mkdir -p /tmp/testData
>  -bash-4.2$
>  -bash-4.2$ mkdir -p /tmp/toRead
>  -bash-4.2$ ln -s /tmp/testData /tmp/toRead/data1
>  -bash-4.2$ touch /tmp/testData/1.txt
>  -bash-4.2$ touch /tmp/testData/2.txt
>  -bash-4.2$ touch /tmp/toRead/t.txt
> -bash-4.2$ mkdir /tmp/toRead/data2
> -bash-4.2$ touch /tmp/toRead/data2/22.txt
> -bash-4.2$ cd /tmp/toRead/
> -bash-4.2$ tree
> .
> ├── data1 -> /tmp/testData
> ├── data2
> │   └── 22.txt
> └── t.txt
> 2 directories, 2 files
> -bash-4.2$ pwd
> /tmp/toRead
> -bash-4.2$ tree
> .
> ├── data1 -> /tmp/testData
> ├── data2
> │   └── 22.txt
> └── t.txt
> 2 directories, 2 files
> -bash-4.2$ touch data
> data1/ data2/
> -bash-4.2$ touch data2/22.txt
> -bash-4.2$ touch t.txt
> -bash-4.2$ tree /tmp/testData
> /tmp/testData
> ├── 1.txt
> └── 2.txt
> 0 directories, 2 files
>  
> *Nifi:*
> Configured ListSFTP  +Remote Path+ to +/tmp/toRead/+ and +Search Recursively+ 
> to +true+
>   
> *+Expected result:+*
> Should list 4 files(1.txt, 2.txt, t.txt, data2/22.txt)
> *+Actual result:+*
> listed only two files(t.txt, data2/22.txt)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to