<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: ListSFTP processor not fetching file size in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220691#M60505</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;@Matt Clarke&lt;/P&gt;&lt;P&gt;I will create JIRA for this.&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 07:06:44 GMT</pubDate>
    <dc:creator>ninad_patkhedka</dc:creator>
    <dc:date>2017-05-09T07:06:44Z</dc:date>
    <item>
      <title>ListSFTP processor not fetching file size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220688#M60502</link>
      <description>&lt;P&gt;For my usecase, I need to get metadata about file from a remote server. Don't need to fetch actual content of file. So ListSFTP processor works fine. Though getting metadata of file as mentioned in write attributes at &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ListSFTP/"&gt;ListSFTP&lt;/A&gt; , "file size" is missing attribute.&lt;/P&gt;&lt;P&gt;What would be easiest workaround to get file size here? Also I think a JIRA might be required to get file size as write attribute for ListSFTP processor.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 22:31:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220688#M60502</guid>
      <dc:creator>ninad_patkhedka</dc:creator>
      <dc:date>2017-05-04T22:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: ListSFTP processor not fetching file size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220689#M60503</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12117/ninadpatkhedkar.html" nodeid="12117"&gt;@Ninad Patkhedkar&lt;/A&gt;&lt;P&gt;You are correct that the File size as it exists on the SFTP server is not written to an attribute on the listed FlowFile. On every FlowFile NiFi creates a FlowFile property ( fileSize ) which records the size of the Content associated to that FlowFile.  This FlowFile property is not editable and is updated with the actual size of the fetched content post FetchSFTP.&lt;/P&gt;&lt;P&gt;I understand you don't want to actual fetch the data but only want to get some metadata (including size) about what currently exist on the SFTP server.  Interesting idea.  I suggest creating an Apache Jira to add an addition FLowFile Attribute on list (for example maybe "sftp.server.file.size").  We have to make sure the attribute name is very descriptive so users do not confuse it with "fileSize" that already exists on the FlowFile.   We can never assume that both "fileSize" and "sftp.server.file.size" will ever be exactly the same.  And "fileSize" will change depending on how the content is manipulated as it progress through a NiFi dataflow.&lt;/P&gt;&lt;P&gt;I see a valid use case here:&lt;/P&gt;&lt;P&gt;But adding this property would allow users to make routing decisions on listed files.  Perhaps you don't want to Fetch any Files form the SFTp server if they are larger then XXX in size.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:22:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220689#M60503</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-05-04T23:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: ListSFTP processor not fetching file size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220690#M60504</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12117/ninadpatkhedkar.html" nodeid="12117"&gt;@Ninad Patkhedkar&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Was I able to address you question?  Unfortunately there is no work around other then using FetchSFTP to actually pull the file content so that fileSize is updated; however, that is a complete waste of resources if you don't need to ingest the data.&lt;/P&gt;&lt;P&gt;If you found this response helpful, please accept the answer.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 00:26:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220690#M60504</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-05-09T00:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: ListSFTP processor not fetching file size</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220691#M60505</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;@Matt Clarke&lt;/P&gt;&lt;P&gt;I will create JIRA for this.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 07:06:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSFTP-processor-not-fetching-file-size/m-p/220691#M60505</guid>
      <dc:creator>ninad_patkhedka</dc:creator>
      <dc:date>2017-05-09T07:06:44Z</dc:date>
    </item>
  </channel>
</rss>

