<?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 How to check particular prefix files exist or not inside directory in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377719#M139530</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to check particular prefix files are exist inside directory or not. If exist i want to perform some operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried with tFileexist -&amp;gt; It is checking only fully qualified file name. I want to check file exist or not with particluar prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried with tFileList -&amp;gt; It is listing all files taking too much time. Simply i wanted to check is there any file exist with particular prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Folder contains 1_filename1, 1_filename2, 1_filename3 , 2_filename1, 2_filename2, 2_filename3 etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check is there any file exist with 2_*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ganesh.R&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 06:33:53 GMT</pubDate>
    <dc:creator>ganeshK</dc:creator>
    <dc:date>2022-01-25T06:33:53Z</dc:date>
    <item>
      <title>How to check particular prefix files exist or not inside directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377719#M139530</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to check particular prefix files are exist inside directory or not. If exist i want to perform some operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried with tFileexist -&amp;gt; It is checking only fully qualified file name. I want to check file exist or not with particluar prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried with tFileList -&amp;gt; It is listing all files taking too much time. Simply i wanted to check is there any file exist with particular prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Folder contains 1_filename1, 1_filename2, 1_filename3 , 2_filename1, 2_filename2, 2_filename3 etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check is there any file exist with 2_*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ganesh.R&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 06:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377719#M139530</guid>
      <dc:creator>ganeshK</dc:creator>
      <dc:date>2022-01-25T06:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to check particular prefix files exist or not inside directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377720#M139531</link>
      <description>&lt;P&gt;Hi maybe you can do this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in a tJava &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- in advanced settings : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import java.io.File;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- in basic settings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File dir = new File("here your directory path");&lt;/P&gt;&lt;P&gt;Boolean fileExist = (dir.listFiles(file -&amp;gt; file.getName().matches("^2_.*"))).length&amp;gt;0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 08:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377720#M139531</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-01-25T08:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to check particular prefix files exist or not inside directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377721#M139532</link>
      <description>&lt;P&gt;Hi @guenneguez jeremy​&amp;nbsp;, Thanks for the solution and worked for me.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 07:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377721#M139532</guid>
      <dc:creator>ganeshK</dc:creator>
      <dc:date>2022-02-02T07:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to check particular prefix files exist or not inside directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377722#M139533</link>
      <description>&lt;P&gt;If my answer helped you, can you select it as best answer to close the ticket ?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 07:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-check-particular-prefix-files-exist-or-not-inside/m-p/2377722#M139533</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-02-02T07:53:47Z</dc:date>
    </item>
  </channel>
</rss>

