<?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: Browse folders and find identical files (without using tFileCompare) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234662#M23948</link>
    <description>works! thanks 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Fri, 10 Aug 2012 16:09:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-10T16:09:23Z</dc:date>
    <item>
      <title>Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234655#M23941</link>
      <description>HI, 
&lt;BR /&gt;I try to browse two folders and see if I find in the two, files with the same name (my files in my folders are named with an ID and I have to parse the file names and compare to see if I have this ID) 
&lt;BR /&gt; for exmaple : 
&lt;BR /&gt;File1=Toto1-12345.csv in folder 1 
&lt;BR /&gt;File2=Toto2-12345.csv in folder 2 
&lt;BR /&gt;Result OK : I have the same ID 12345 
&lt;BR /&gt; 
&lt;BR /&gt;I can not use a tFileCompare because they come from two different systems (different moment, different filename, different ref....) 
&lt;BR /&gt;an idea how I could do? 
&lt;BR /&gt;I tried: tFileList_1----OnComponnentOk----tFileList_2------iterate------tJava. but it doesn't work. In my tJava I tried (if (String)globalMap.get("tFileList_1_CURRENT_FILE")==(String)globalMap.get("tFileList_2_CURRENT_FILE") ....) 
&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 09 Aug 2012 11:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234655#M23941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-09T11:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234656#M23942</link>
      <description>Something like:&lt;BR /&gt;tFileList_1 --&amp;gt; tIterateToFlow (file names) --&amp;gt; tJavaRow (parse ID) --main--&amp;gt; tMap (inner join) --&amp;gt;&lt;BR /&gt;tFileList_2 --&amp;gt; tIterateToFlow (file names) --&amp;gt; tJavaRow (parse ID) --lookup--&amp;gt;</description>
      <pubDate>Thu, 09 Aug 2012 15:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234656#M23942</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-08-09T15:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234657#M23943</link>
      <description>Hi 
&lt;BR /&gt;In Java, use the method String1.equals("String2") to check one string if equlas to anther string. In your case, the expression should be: 
&lt;BR /&gt;(String)globalMap.get("tFileList_1_CURRENT_FILE").equals((String)globalMap.get("tFileList_2_CURRENT_FILE") ....)) 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 09 Aug 2012 15:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234657#M23943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-09T15:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234658#M23944</link>
      <description>Thanks both &lt;BR /&gt;I tried &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Something like:&lt;BR /&gt;tFileList_1 --&amp;gt; tIterateToFlow (file names) --&amp;gt; tJavaRow (parse ID) --main--&amp;gt; tMap (inner join) --&amp;gt;&lt;BR /&gt;tFileList_2 --&amp;gt; tIterateToFlow (file names) --&amp;gt; tJavaRow (parse ID) --lookup--&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;But impossible to retrieve my data from tJavaRow in my tMap.</description>
      <pubDate>Fri, 10 Aug 2012 09:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234658#M23944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-10T09:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234659#M23945</link>
      <description>tJavaRow just allows you to manipulate the row variables so there's no reason it shouldn't be available in tMap if you've done it properly.  How about a screenprint?</description>
      <pubDate>Fri, 10 Aug 2012 09:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234659#M23945</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-08-10T09:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234660#M23946</link>
      <description>Thanks alevy, 
&lt;BR /&gt;maybe I'm wrong in setting my tJavarow 
&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;</description>
      <pubDate>Fri, 10 Aug 2012 10:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234660#M23946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-10T10:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234661#M23947</link>
      <description>All you've done is declared a local variable. If you want the value passed out, the code should be something like row3.name_file=row1.filename;. (You can also use input_row and output_row instead of the actual row names.)</description>
      <pubDate>Fri, 10 Aug 2012 13:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234661#M23947</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-08-10T13:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234662#M23948</link>
      <description>works! thanks 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 10 Aug 2012 16:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234662#M23948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-10T16:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234663#M23949</link>
      <description>please can any one tell me how to use tFileCompare</description>
      <pubDate>Tue, 24 Jun 2014 08:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234663#M23949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-24T08:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Browse folders and find identical files (without using tFileCompare)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234664#M23950</link>
      <description>Not sure how talend checks internally, but the tFileCompare performs the comparison for the contents inside the file on line by line basis... see the code below 
&lt;BR /&gt; while ((content_tFileCompare_1 = file_tFileCompare_1 
&lt;BR /&gt; .readLine()) != null 
&lt;BR /&gt; &amp;amp;&amp;amp; (contentRef_tFileCompare_1 = fileRef_tFileCompare_1 
&lt;BR /&gt; .readLine()) != null) { 
&lt;BR /&gt; if (content_tFileCompare_1 
&lt;BR /&gt; .compareTo(contentRef_tFileCompare_1) != 0) { 
&lt;BR /&gt; result_tFileCompare_1 = false; 
&lt;BR /&gt; break; 
&lt;BR /&gt;Refer to following URL for use case 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=tFileCompare&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tFileCompare&amp;amp;content-lang=en&lt;/A&gt; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Tue, 24 Jun 2014 08:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Browse-folders-and-find-identical-files-without-using/m-p/2234664#M23950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-24T08:27:16Z</dc:date>
    </item>
  </channel>
</rss>

