<?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>topic tS3List and filename in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305841#M77457</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I'm using the tS3List component to list files in a bucket according to a prefix key. At each iteration, it gives me :&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;tS3List_1_CURRENT_BUCKET : the current bucket&lt;/LI&gt; 
 &lt;LI&gt;tS3List_1_CURRENT_KEY : the global current key path&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;When using the tS3Get component, it asked me for a the destination filepath, which I want to be dynamic according to the iteration. Why the tS3List component doesn't give us directly the 3 following paramaters ?&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;current_file&lt;/LI&gt; 
 &lt;LI&gt;current_file_path&lt;/LI&gt; 
 &lt;LI&gt;current_directory&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 08:29:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-30T08:29:25Z</dc:date>
    <item>
      <title>tS3List and filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305841#M77457</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I'm using the tS3List component to list files in a bucket according to a prefix key. At each iteration, it gives me :&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;tS3List_1_CURRENT_BUCKET : the current bucket&lt;/LI&gt; 
 &lt;LI&gt;tS3List_1_CURRENT_KEY : the global current key path&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;When using the tS3Get component, it asked me for a the destination filepath, which I want to be dynamic according to the iteration. Why the tS3List component doesn't give us directly the 3 following paramaters ?&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;current_file&lt;/LI&gt; 
 &lt;LI&gt;current_file_path&lt;/LI&gt; 
 &lt;LI&gt;current_directory&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 08:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305841#M77457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T08:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: tS3List and filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305842#M77458</link>
      <description>&lt;P&gt;This is because S3 is not a normal drive with directory and file path. &amp;nbsp;It is a key/value pair. &amp;nbsp;The value being any byte stream object. As per the example from AWS documentation, an object in S3 has a key, not a filename, filepath or directory.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="S3List.png" style="width: 787px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvGa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131042i9B01D1307F116CF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvGa.png" alt="0683p000009LvGa.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 08:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305842#M77458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T08:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: tS3List and filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305843#M77459</link>
      <description>&lt;P&gt;I am interested in&amp;nbsp;filename from tS3List component, but there is no&amp;nbsp;global variable available. I have used StringHandling to do it, but&amp;nbsp;not very happy with it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The files are stored in S3 bucket as abc/abc/abc/abc/filename.txt, as I know this I have used StringHandling.Right, StringHandling.LEN and SQLike.mid functions.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;StringHandling.RIGHT( ((String)globalMap.get("tS3List_1_CURRENT_KEY")),(StringHandling.LEN(((String)globalMap.get("tS3List_1_CURRENT_KEY"))) - StringHandling.LEN((String)SQLike.mid_index(((String)globalMap.get("tS3List_1_CURRENT_KEY")),"/",4)))-1)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to parse&amp;nbsp;&lt;SPAN&gt;tS3List_1_CURRENT_KEY upto first "/" from right? That should give me filename little more efficiently and I do not have to hack with values such as '4'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305843#M77459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T13:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: tS3List and filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305844#M77460</link>
      <description>&lt;P&gt;I use the following code to get the filename :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((String)globalMap.get("tS3List_1_CURRENT_KEY")).substring( ((String)globalMap.get("tS3List_1_CURRENT_KEY")).lastIndexOf("/") + 1 )&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tS3List-and-filename/m-p/2305844#M77460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T13:17:57Z</dc:date>
    </item>
  </channel>
</rss>

