<?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: [resolved] Copy single unique file from different directories to other directory in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289388#M62780</link>
    <description>Hi Paven&lt;BR /&gt;It should be like this.&lt;BR /&gt;&lt;PRE&gt;int temp =((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"));&lt;BR /&gt;if(temp==1){&lt;BR /&gt;context.directory="C:/Test1"&lt;BR /&gt;}else if(temp==2){&lt;BR /&gt;context.directory="C:/Test2"&lt;BR /&gt;}else if(temp==3){&lt;BR /&gt;context.directory="C:/Test3"&lt;BR /&gt;}&lt;/PRE&gt;&lt;BR /&gt;They are directories. You can't use file path in tFileList.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
    <pubDate>Mon, 09 Apr 2012 10:49:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-09T10:49:11Z</dc:date>
    <item>
      <title>[resolved] Copy single unique file from different directories to other directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289384#M62776</link>
      <description>Hi all,&lt;BR /&gt;As a part of my daily process i have to copy .tar.gz files from many directories to one location and later unzip them and process them, I am not able to find out how to Copy files from many directories to one location&lt;BR /&gt;For example, let us say that i have&lt;BR /&gt;C:/Test1 ----&amp;gt; Contains File1&lt;BR /&gt;C:/Test2 ----&amp;gt; Contains File2&lt;BR /&gt;C:/Test3 ----&amp;gt; Contains File3&lt;BR /&gt;Each directory contains .tar.gz files respectively, so now i want to copy the files from each directory and paste it in one location. I had done one job using tFileList and tFileCopy&lt;BR /&gt;                                    tFileList_1 -------------&amp;gt; tFileCopy_1 ------------&amp;gt; tFileUnarchive_1&lt;BR /&gt;But this could copy only multiple files in one directory to another, but i want each file present in multiple directories at a single stretch.&lt;BR /&gt;Is it possible to perform the way i want? or Should i need to have 3 tFilelist_1 components and 3 tFileCopy_1 components in a single job and run them parallel?&lt;BR /&gt;And after i copy i use tFileUnarchive to unzip the copied files, while i run the job i am getting an error, i am not able to debug it, can any one of you help me to resolve this error.I attach the images of the error i get so that it would be helpful for your better understanding.&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Pavan</description>
      <pubDate>Sat, 07 Apr 2012 12:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289384#M62776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-07T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Copy single unique file from different directories to other directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289385#M62777</link>
      <description>Hi all,&lt;BR /&gt;can any one help me with the situation below?Please i am in great need of how to accomplish the below mentioned job&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Pavan&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hi all,&lt;BR /&gt;As a part of my daily process i have to copy .tar.gz files from many directories to one location and later unzip them and process them, I am not able to find out how to Copy files from many directories to one location&lt;BR /&gt;For example, let us say that i have&lt;BR /&gt;C:/Test1 ----&amp;gt; Contains File1&lt;BR /&gt;C:/Test2 ----&amp;gt; Contains File2&lt;BR /&gt;C:/Test3 ----&amp;gt; Contains File3&lt;BR /&gt;Each directory contains .tar.gz files respectively, so now i want to copy the files from each directory and paste it in one location. I had done one job using tFileList and tFileCopy&lt;BR /&gt;                                    tFileList_1 -------------&amp;gt; tFileCopy_1 ------------&amp;gt; tFileUnarchive_1&lt;BR /&gt;But this could copy only multiple files in one directory to another, but i want each file present in multiple directories at a single stretch.&lt;BR /&gt;Is it possible to perform the way i want? or Should i need to have 3 tFilelist_1 components and 3 tFileCopy_1 components in a single job and run them parallel?&lt;BR /&gt;And after i copy i use tFileUnarchive to unzip the copied files, while i run the job i am getting an error, i am not able to debug it, can any one of you help me to resolve this error.I attach the images of the error i get so that it would be helpful for your better understanding.&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Pavan&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 08 Apr 2012 06:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289385#M62777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-08T06:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Copy single unique file from different directories to other directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289386#M62778</link>
      <description>Hi Pavan&lt;BR /&gt;This is related to 23214.&lt;BR /&gt;Here is another workaround to use only one tFileList(Image 1).&lt;BR /&gt;Add a context variable in this job called context.directory.&lt;BR /&gt;Type context.directory in the "directory" textfield of tFileList.&lt;BR /&gt;Set tLoop to loop 3 times and code in tJava as follow.&lt;BR /&gt;&lt;PRE&gt;int temp =((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"));&lt;BR /&gt;if(temp==1){&lt;BR /&gt;context.directory=....       //the path&lt;BR /&gt;}else if(temp==2){&lt;BR /&gt;context.directory=....       //the path&lt;BR /&gt;}else if(temp==3){&lt;BR /&gt;context.directory=....       //the path&lt;BR /&gt;}&lt;/PRE&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 09 Apr 2012 06:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289386#M62778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-09T06:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Copy single unique file from different directories to other directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289387#M62779</link>
      <description>Hi Pedro,&lt;BR /&gt;I guess there is no luck working towards me, I had done my job the way you told but the job executes successfully but my purpose is not accomplished, the loop executes for three times and the value doesn't gets forwarded to the next component and hence the files are not copied, Please help me with a solution&lt;BR /&gt;I attach the images of my job and properties of each component &lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Pavan</description>
      <pubDate>Mon, 09 Apr 2012 10:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289387#M62779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-09T10:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Copy single unique file from different directories to other directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289388#M62780</link>
      <description>Hi Paven&lt;BR /&gt;It should be like this.&lt;BR /&gt;&lt;PRE&gt;int temp =((Integer)globalMap.get("tLoop_1_CURRENT_VALUE"));&lt;BR /&gt;if(temp==1){&lt;BR /&gt;context.directory="C:/Test1"&lt;BR /&gt;}else if(temp==2){&lt;BR /&gt;context.directory="C:/Test2"&lt;BR /&gt;}else if(temp==3){&lt;BR /&gt;context.directory="C:/Test3"&lt;BR /&gt;}&lt;/PRE&gt;&lt;BR /&gt;They are directories. You can't use file path in tFileList.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 09 Apr 2012 10:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289388#M62780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-09T10:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Copy single unique file from different directories to other directory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289389#M62781</link>
      <description>Hi Pedro,&lt;BR /&gt;Thank you very much! It's working&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Pavan</description>
      <pubDate>Mon, 09 Apr 2012 10:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Copy-single-unique-file-from-different-directories-to/m-p/2289389#M62781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-09T10:58:13Z</dc:date>
    </item>
  </channel>
</rss>

