[
https://issues.apache.org/jira/browse/NIFI-8189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17394781#comment-17394781
]
Joe Witt commented on NIFI-8189:
--------------------------------
You'll want ListSFTP -> RouteOnAttribute -> FetchSFTP
ListSFTP doesn't restrict based on size. As David points out it just does a
listing. RouteOnAttribute is where you can do all kids of good decision logic.
If something gets sent from Route to Fetch then game on. If it doesn't then
it will never get pulled.
> 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)