<?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] File sync in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350877#M117645</link>
    <description>Sometimes it's good to switch in the source view, it's easier to detect the errors</description>
    <pubDate>Wed, 21 Dec 2011 13:18:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-12-21T13:18:10Z</dc:date>
    <item>
      <title>[resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350868#M117636</link>
      <description>Hi I want to keep the files at two locations in sync with each other.The two file locations will be passed as the context variables.&lt;BR /&gt;e.g.&lt;BR /&gt;let one location is C:/source&lt;BR /&gt;and the other is C:/target&lt;BR /&gt;When my job runs for the first time it should first check the source folder and match them with the contents of the target folder. If there is a difference in the two locations the files need to be copied to the other location.Basically the two folders need to be in sync with each other. If there are new files in the target folder they need to be copied to the source and vice versa.&lt;BR /&gt;&lt;BR /&gt;Any help on the above will be highly appreciated.&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;Abhineet</description>
      <pubDate>Sat, 16 Nov 2024 12:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350868#M117636</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350869#M117637</link>
      <description>Hi
&lt;BR /&gt;Using tFileList to iterate each file in source folder, check the file if it exits in the target using tFileExist, copy it to target folder with tFileCopy if not. Foe example:
&lt;BR /&gt;tFileList--iterate--tJava--componentOK--tFileExist--runIf--tFileCopy
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 21 Dec 2011 04:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350869#M117637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-21T04:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350870#M117638</link>
      <description>Thanks Shong!
&lt;BR /&gt;Seems good..Do I need to follow the same steps in another flow while I check the target folder?
&lt;BR /&gt;Because there may be a scenario that there is a new file in the target folder that also needs to be copied in the source folder.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Abhineet</description>
      <pubDate>Wed, 21 Dec 2011 04:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350870#M117638</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-21T04:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350871#M117639</link>
      <description>Hi 
&lt;BR /&gt;Yes, use the same way to check the target folder in next subjob.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 21 Dec 2011 06:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350871#M117639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-21T06:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350872#M117640</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi&lt;BR /&gt;Using tFileList to iterate each file in source folder, check the file if it exits in the target using tFileExist, copy it to target folder with tFileCopy if not. Foe example:&lt;BR /&gt;tFileList--iterate--tJava--componentOK--tFileExist--runIf--tFileCopy&lt;BR /&gt;Best regards&lt;BR /&gt;Shong&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi I trying the same solution but I am bit unfamiliar with Java.Can u help me out with the sample Java code to be used in tJava component.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Abhineet</description>
      <pubDate>Wed, 21 Dec 2011 10:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350872#M117640</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-21T10:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350873#M117641</link>
      <description>Hi, 
&lt;BR /&gt;Don't think you need to use a tJava (shong correct me if i'm wrong 
&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;). Just link your tfileList to the tFileExist. 
&lt;BR /&gt;tFileList--iterate--tfileExist---runif---tfilecopy</description>
      <pubDate>Wed, 21 Dec 2011 12:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350873#M117641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-21T12:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350874#M117642</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;Don't think you need to use a tJava (shong correct me if i'm wrong &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;). Just link your tfileList to the tFileExist.&lt;BR /&gt;tFileList--iterate--tfileExist---runif---tfilecopy&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I'm not sure if tfileExist is a standalone component because when I am using the combination 
&lt;BR /&gt;tFileList--iterate--tfileExist---runif---tfilecopy 
&lt;BR /&gt;it gives me a syntax error in the tfileExist component. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Abhineet</description>
      <pubDate>Wed, 21 Dec 2011 12:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350874#M117642</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-21T12:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350875#M117643</link>
      <description>show me your job and what you have put in your tfileexist component</description>
      <pubDate>Wed, 21 Dec 2011 12:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350875#M117643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-21T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350876#M117644</link>
      <description>My Bad!&lt;BR /&gt;seems to be working now...guess there was some mistake in the "if" condition.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Abhineet</description>
      <pubDate>Wed, 21 Dec 2011 13:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350876#M117644</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-21T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350877#M117645</link>
      <description>Sometimes it's good to switch in the source view, it's easier to detect the errors</description>
      <pubDate>Wed, 21 Dec 2011 13:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350877#M117645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-21T13:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350878#M117646</link>
      <description>Hi 
&lt;BR /&gt;@Or3l: I use tJava to get the current file name and initialize variables, such as the target file path, which will be used on tFileExist.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong.</description>
      <pubDate>Wed, 21 Dec 2011 13:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350878#M117646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-21T13:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350879#M117647</link>
      <description>Finally it worked that too without a tJava 
&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; 
&lt;BR /&gt;Thanks Guys!! 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Abhineet</description>
      <pubDate>Wed, 21 Dec 2011 13:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350879#M117647</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-21T13:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350880#M117648</link>
      <description>Hi,
&lt;BR /&gt;appologies to reopen the resolved item.
&lt;BR /&gt; As a part of the same requirement i need to copy only those files which are created not more the a minute before.
&lt;BR /&gt;I was thinking of using a tfileProperties along with the below flow
&lt;BR /&gt;
&lt;BR /&gt; tFileList--iterate--tfileExist---runif---tfilecopy
&lt;BR /&gt; |
&lt;BR /&gt; |
&lt;BR /&gt; iterate(order2)
&lt;BR /&gt; |
&lt;BR /&gt; tfileProperties
&lt;BR /&gt;and give the condition in runIf , something like (systemTime - filemodifiedTime &amp;lt; 1).
&lt;BR /&gt;please suggest if it is the correct approach or can be achieved in some other way.
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Abhineet</description>
      <pubDate>Thu, 22 Dec 2011 05:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350880#M117648</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-22T05:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350881#M117649</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi,&lt;BR /&gt;appologies to reopen the resolved item.&lt;BR /&gt; As a part of the same requirement i need to copy only those files which are created not more the a minute before.&lt;BR /&gt;I was thinking of using a tfileProperties along with the below flow&lt;BR /&gt;&lt;BR /&gt; tFileList--iterate--tfileExist---runif---tfilecopy&lt;BR /&gt; |&lt;BR /&gt; |&lt;BR /&gt; iterate(order2)&lt;BR /&gt; |&lt;BR /&gt; tfileProperties&lt;BR /&gt;and give the condition in runIf , something like (systemTime - filemodifiedTime &amp;lt; 1).&lt;BR /&gt;please suggest if it is the correct approach or can be achieved in some other way.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Also , if the above approach is correct how to achieve that.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Abhineet</description>
      <pubDate>Thu, 22 Dec 2011 05:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350881#M117649</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-22T05:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350882#M117650</link>
      <description>Hi Team,&lt;BR /&gt;Can somebody help me on that?&lt;BR /&gt;Regards,&lt;BR /&gt;Abhineet</description>
      <pubDate>Thu, 22 Dec 2011 06:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350882#M117650</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-22T06:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350883#M117651</link>
      <description>Hi,
&lt;BR /&gt;I think I would first get the file that have been created not more than a minute before, then check if there are already in the target folder and then copy them. So It would give sthing like this
&lt;BR /&gt;tFileList--iterate---tFileProperties----runif----tfileexist---runif---tfilecopy
&lt;BR /&gt;One thing toknow is that the mtime property is based on the datetime modification of the file, so it's not really the date of creation of the file.
&lt;BR /&gt;Furthermore I don't know if you have already managed that but you should probably "tag" the files you have already synchronized (by adding something in their name for example). Unless your job will be quite long.</description>
      <pubDate>Thu, 22 Dec 2011 08:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350883#M117651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-22T08:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350884#M117652</link>
      <description>Hi,&lt;BR /&gt;I tried the above connection but it seems that the connection "tFileProperties----runif----tfileexist" is not feasible. It gives me a warning that tfileProperties must have an output attached.&lt;BR /&gt;Regards,&lt;BR /&gt;Abhineet</description>
      <pubDate>Thu, 22 Dec 2011 09:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350884#M117652</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-22T09:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350885#M117653</link>
      <description>Hi, &lt;BR /&gt;put a tflowtoiterate between tfileproperties an the runif</description>
      <pubDate>Thu, 22 Dec 2011 09:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350885#M117653</guid>
      <dc:creator>ytuzet</dc:creator>
      <dc:date>2011-12-22T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File sync</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350886#M117654</link>
      <description>Use tfilelist---iterate--&amp;gt;tFilecopy&amp;nbsp;
&lt;BR /&gt;&amp;nbsp;in tfilecopy you can use&amp;nbsp;
&lt;BR /&gt;filename ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))
&lt;BR /&gt;Replace Existing files checked&amp;nbsp;</description>
      <pubDate>Mon, 28 Dec 2015 12:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-sync/m-p/2350886#M117654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-28T12:58:47Z</dc:date>
    </item>
  </channel>
</rss>

