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

David Handermann resolved NIFI-8189.
------------------------------------
      Assignee: David Handermann
    Resolution: Not A Problem

ListSFTP creates FlowFiles as references to files found when listing a remote 
SFTP directory. The FlowFiles will have a size of 0 bytes, but they will 
contain an attribute indicating the size of the remote file listed. Verified 
current behavior works as expected: when setting a minimum file size, remote 
files below the threshold do not result in the creation of FlowFiles.

> ListSFTP picks up empty files
> -----------------------------
>
>                 Key: NIFI-8189
>                 URL: https://issues.apache.org/jira/browse/NIFI-8189
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.9.2
>         Environment: Centos 7
>            Reporter: David Marrow
>            Assignee: David Handermann
>            Priority: Minor
>
> For ListSFTP we set the minimum files size to 1B.  This that set it still 
> picks up empty files.   In looking at the attributes tab file.size was set to 
> 848 (different for each empty file) while the File Size under the Details tab 
> is Zero (always the case until you fetch the file).   My guess is the 
> attribute information is coming from the SFTP site.   After fetching the file 
> the File Size under the Details tab is 0 but the file.size under the 
> attributes tab is still 848.  
> I also noticed that if the file is not empty the File Size and file.size 
> match.   I am unable to provide screen shots from my environment.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to