<?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 Re: Check if multiple files exist in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316555#M87091</link>
    <description>Thanks Shong. 
&lt;BR /&gt;1 more basic question. I now need the id, filename and a true / false (if exists) to be written to file. 
&lt;BR /&gt;How to I capture the result of the tfileexist component to output? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Simon</description>
    <pubDate>Wed, 17 Aug 2011 02:52:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-17T02:52:53Z</dc:date>
    <item>
      <title>Check if multiple files exist</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316553#M87089</link>
      <description>Hi, 
&lt;BR /&gt;Is someone able to explain to me what components to use and how I can do the following? 
&lt;BR /&gt;I have a table which references a path and filename of a collection of files location on a mapped network drive. 
&lt;BR /&gt;I want to be able to iterate through each row of the table, and then based on the path and filename, confirm that the file actually exists. 
&lt;BR /&gt;I've had a look at the tfileexist component but this does not seem to take a file path input. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Simon</description>
      <pubDate>Sat, 16 Nov 2024 12:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316553#M87089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Check if multiple files exist</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316554#M87090</link>
      <description>Hi Simon 
&lt;BR /&gt;tFileExist is the suitable component to check if the file exist or not, the job looks like: 
&lt;BR /&gt;tMysqlInput--row1--tFlowToIterate--iterate---tFileExist 
&lt;BR /&gt;Assuming that you query two fields from the table: filepath and filename 
&lt;BR /&gt;in the filename/stream field of tFileExist: 
&lt;BR /&gt;row1.filepath+"/"+row1.filename 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 17 Aug 2011 02:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316554#M87090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-17T02:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Check if multiple files exist</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316555#M87091</link>
      <description>Thanks Shong. 
&lt;BR /&gt;1 more basic question. I now need the id, filename and a true / false (if exists) to be written to file. 
&lt;BR /&gt;How to I capture the result of the tfileexist component to output? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Simon</description>
      <pubDate>Wed, 17 Aug 2011 02:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316555#M87091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-17T02:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Check if multiple files exist</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316556#M87092</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Thanks Shong.&lt;BR /&gt;1 more basic question. I now need the id, filename and a true / false (if exists) to be written to file.&lt;BR /&gt;How to I capture the result of the tfileexist component to output?&lt;BR /&gt;Thanks,&lt;BR /&gt;Simon&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Base on your request, the job looks like: 
&lt;BR /&gt;tMysqlInput--row1--tFlowToIterate--iterate---tFileExist_1--oncomponentok--tFixedFlowInput--main--tFileOutputDelimited 
&lt;BR /&gt;on tFixedFlowInput, add three columns on the schema: id, filename and isExist 
&lt;BR /&gt;columnName:value 
&lt;BR /&gt;id 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;Integer)globalMap.get("row1.id") 
&lt;BR /&gt;filename 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;String)globalMap.get("row1.filename") 
&lt;BR /&gt;isExist 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(Boolean)globalMap.get("tFileExist_1_EXISTS")) 
&lt;BR /&gt;on tFileOutputDelimited, check the box 'append' 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 17 Aug 2011 02:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-if-multiple-files-exist/m-p/2316556#M87092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-17T02:57:04Z</dc:date>
    </item>
  </channel>
</rss>

